Class Option<T, TDeclaration>
Type Parameters
-
T
-
TDeclaration extends DeclarationOption = DeclarationOption
Constructors
constructor
- new Option<T, TDeclaration>(plugin: ABasePlugin, group: null | OptionGroup<any, any>, declaration: TDeclaration, ...__namedParameters: MapperPart<T, TDeclaration>): Option<T, TDeclaration>
-
Type Parameters
-
T
-
TDeclaration extends DeclarationOption = DeclarationOption
Parameters
-
-
group: null | OptionGroup<any, any>
-
declaration: TDeclaration
-
Rest
...__namedParameters: MapperPart<T, TDeclaration>
Returns Option<T, TDeclaration>
Properties
Readonly
name
name: string
Accessors
fullName
- get fullName(): string
-
Returns string
Methods
setValue
- setValue(value: DeclarationOptionToOptionType<TDeclaration>): void
-
Parameters
-
value: DeclarationOptionToOptionType<TDeclaration>
Returns void
Static
factory
- factory<T2>(plugin: ABasePlugin): (<TDec>(declaration: TDec, ...mapper: MapperPart<T2, TDec>) => Option<T2, TDec>)
-
Returns (<TDec>(declaration: TDec, ...mapper: MapperPart<T2, TDec>) => Option<T2, TDec>)
-
- <TDec>(declaration: TDec, ...mapper: MapperPart<T2, TDec>): Option<T2, TDec>
-
Type Parameters
-
TDec extends DeclarationOption
Parameters
-
declaration: TDec
-
Rest
...mapper: MapperPart<T2, TDec>
Returns Option<T2, TDec>
Get the mapped value.
Returns
the value.