FunctionConverter

Hierarchy

  • FunctionConverter

Implements

Index

Methods

Methods

convert

convert(reflectedType: tsruntimeTypes.ReflectedType): InstanceOf

Converts to function.

Parameters:

NameTypeDescription
reflectedTypetsruntimeTypes.ReflectedTypeReflected type.

Returns: InstanceOf

Returns Function constructor wrapped in InstanceOf pattern.


isConvertible

isConvertible(reflectedType: tsruntimeTypes.ReflectedType): boolean

Evaluates if provided reflected type is a function.

Parameters:

NameTypeDescription
reflectedTypetsruntimeTypes.ReflectedTypeReflected type.

Returns: boolean

Returns true if reflected type is a function, else false.


reflect

reflect(reflectedType: tsruntimeTypes.ReflectedType): Function

Reflects function.

Parameters:

NameType
reflectedTypetsruntimeTypes.ReflectedType

Returns: Function

Returns Function constructor.