Converter

Hierarchy

  • Converter

Implemented by

Index

Properties

Methods

Properties

typeConverters

typeConverters: Map‹string, TypeConverter›

Methods

convert

convert(reflectedType: any): Type

Parameters:

NameType
reflectedTypeany

Returns: Type

convert(reflectedType: any): Type

Parameters:

NameType
reflectedTypeany

Returns: Type


getConverter

getConverter(kind: string): TypeConverter | undefined

Parameters:

NameType
kindstring

Returns: TypeConverter | undefined

getConverter(kind: string): TypeConverter | undefined

Parameters:

NameType
kindstring

Returns: TypeConverter | undefined


hasConverter

hasConverter(kind: string): boolean

Parameters:

NameType
kindstring

Returns: boolean

hasConverter(kind: string): boolean

Parameters:

NameType
kindstring

Returns: boolean


overrideConverter

overrideConverter(kind: string, converter: TypeConverter): void

Parameters:

NameType
kindstring
converterTypeConverter

Returns: void

overrideConverter(kind: string, converter: TypeConverter): void

Parameters:

NameType
kindstring
converterTypeConverter

Returns: void


reflect

reflect(reflectedType: any): Type

Parameters:

NameType
reflectedTypeany

Returns: Type

reflect(reflectedType: any): Type

Parameters:

NameType
reflectedTypeany

Returns: Type


registerConverter

registerConverter(kind: string, converter: TypeConverter, shouldOverride?: boolean): void

Parameters:

NameType
kindstring
converterTypeConverter
shouldOverride?boolean

Returns: void

registerConverter(kind: string, converter: TypeConverter, shouldOverride?: boolean): void

Parameters:

NameType
kindstring
converterTypeConverter
shouldOverride?boolean

Returns: void


removeConverter

removeConverter(kind: string): void

Parameters:

NameType
kindstring

Returns: void

removeConverter(kind: string): void

Parameters:

NameType
kindstring

Returns: void