PropsOfConverter

Hierarchy

  • PropsOfConverter

Implements

Index

Methods

Methods

convert

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

Converts reflected utility type to properties of class.

Parameters:

NameTypeDescription
reflectedTypetsruntimeTypes.ReflectedTypeReflected type.
converterConverterInstance of converter.

Returns: Collection

Returns converted class properties as instance of Collection pattern.


isConvertible

isConvertible(reflectedType: tsruntimeTypes.ReflectedType, converter: Converter): boolean

Evaluates if provided reflected type uses utility type $PropsOf.

Parameters:

NameTypeDescription
reflectedTypetsruntimeTypes.ReflectedTypeReflected type.
converterConverterInstance of converter.

Returns: boolean

Returns true if reflected type is a utility type $PropsOf and has valid class type payload, else false.


reflect

reflect(reflectedType: tsruntimeTypes.ReflectedType, converter: Converter): Record‹keyof any, any›

Reflects utility type to properties of class.

Parameters:

NameTypeDescription
reflectedTypetsruntimeTypes.ReflectedTypeReflected type.
converterConverterInstance of converter.

Returns: Record‹keyof any, any›

Returns reflected class properties as instance of an Object pattern.