ArrayConverter

Hierarchy

  • ArrayConverter

Implements

Index

Methods

Methods

convert

convert(reflectedType: tsruntimeTypes.ReflectedType, converter: Converter): List

Converts reflected type to array.

Parameters:

NameTypeDescription
reflectedTypetsruntimeTypes.ReflectedTypeReflected type.
converterConverterConverter 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:

NameTypeDescription
reflectedTypetsruntimeTypes.ReflectedTypeReflected 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:

NameTypeDescription
reflectedTypetsruntimeTypes.ReflectedTypeReflected type.
converterConverterConverter instance.

Returns: any[]

Returns reflected type as an Array.