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