TupleConverter
Hierarchy
- TupleConverter
Implements
- TypeConverter
- TypeConverter
Index
Methods
Methods
convert
▸ convert(reflectedType
: tsruntimeTypes.ReflectedType, converter
: Converter): Tuple
Converts tuple.
Parameters:
Name | Type | Description |
---|---|---|
reflectedType | tsruntimeTypes.ReflectedType | Reflected type. |
converter | Converter | Converter instance. |
Returns: Tuple
Returns converted tuple as an instance of Tuple
pattern.
isConvertible
▸ isConvertible(reflectedType
: tsruntimeTypes.ReflectedType): boolean
Evaluates if provided reflected type is a tuple.
Parameters:
Name | Type | Description |
---|---|---|
reflectedType | tsruntimeTypes.ReflectedType | Reflected type. |
Returns: boolean
Returns true
if reflected type is tuple, else false
.
reflect
▸ reflect(reflectedType
: tsruntimeTypes.ReflectedType, converter
: Converter): any[]
Reflects tuple.
Parameters:
Name | Type | Description |
---|---|---|
reflectedType | tsruntimeTypes.ReflectedType | Reflected type. |
converter | Converter | Converter instance. |
Returns: any[]
Returns reflected tuple as an Array
.