TupleConverter

Hierarchy

  • TupleConverter

Implements

Index

Methods

Methods

convert

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

Converts tuple.

Parameters:

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

NameTypeDescription
reflectedTypetsruntimeTypes.ReflectedTypeReflected type.

Returns: boolean

Returns true if reflected type is tuple, else false.


reflect

reflect(reflectedType: tsruntimeTypes.ReflectedType, converter: Converter): any[]

Reflects tuple.

Parameters:

NameTypeDescription
reflectedTypetsruntimeTypes.ReflectedTypeReflected type.
converterConverterConverter instance.

Returns: any[]

Returns reflected tuple as an Array.