NativeConverter

Hierarchy

  • NativeConverter

Implements

Index

Methods

Object literals

Methods

convert

convert(reflectedType: tsruntimeTypes.ReflectedType): Any | Void | Never

Converts type to native type for validation.

Parameters:

NameTypeDescription
reflectedTypetsruntimeTypes.ReflectedTypeReflected type.

Returns: Any | Void | Never

Returns converted reflected type as instance of pattern Any for any | Void for void | Never for never.


isConvertible

isConvertible(reflectedType: tsruntimeTypes.ReflectedType): boolean

Evaluates if provided reflected type is a native type.

Parameters:

NameTypeDescription
reflectedTypetsruntimeTypes.ReflectedTypeReflected type.

Returns: boolean

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


reflect

reflect(reflectedType: tsruntimeTypes.ReflectedType): Any | Void | Never

Reflects type to Pattern based equivalent of native type.

Parameters:

NameTypeDescription
reflectedTypetsruntimeTypes.ReflectedTypeReflected type.

Returns: Any | Void | Never

Returns reflected type as instance of pattern Any for any | Void for void | Never for never.

Object literals

Static MAPPINGS

MAPPINGS: object

1

1: Any‹› = new Any()

11

11: Void‹› = new Void()

14

14: Never‹› = new Never()