FunctionConverter
Hierarchy
- FunctionConverter
Implements
- TypeConverter
- TypeConverter
Index
Methods
Methods
convert
▸ convert(reflectedType
: tsruntimeTypes.ReflectedType): InstanceOf
Converts to function.
Parameters:
Name | Type | Description |
---|---|---|
reflectedType | tsruntimeTypes.ReflectedType | Reflected type. |
Returns: InstanceOf
Returns Function
constructor wrapped in InstanceOf
pattern.
isConvertible
▸ isConvertible(reflectedType
: tsruntimeTypes.ReflectedType): boolean
Evaluates if provided reflected type is a function.
Parameters:
Name | Type | Description |
---|---|---|
reflectedType | tsruntimeTypes.ReflectedType | Reflected type. |
Returns: boolean
Returns true
if reflected type is a function, else false
.
reflect
▸ reflect(reflectedType
: tsruntimeTypes.ReflectedType): Function
Reflects function.
Parameters:
Name | Type |
---|---|
reflectedType | tsruntimeTypes.ReflectedType |
Returns: Function
Returns Function
constructor.