Converter
Hierarchy
- Converter
Implemented by
Index
Properties
Methods
Properties
typeConverters
• typeConverters: Map‹string, TypeConverter›
Methods
convert
▸ convert(reflectedType
: any): Type
Parameters:
Name | Type |
---|---|
reflectedType | any |
Returns: Type
▸ convert(reflectedType
: any): Type
Parameters:
Name | Type |
---|---|
reflectedType | any |
Returns: Type
getConverter
▸ getConverter(kind
: string): TypeConverter | undefined
Parameters:
Name | Type |
---|---|
kind | string |
Returns: TypeConverter | undefined
▸ getConverter(kind
: string): TypeConverter | undefined
Parameters:
Name | Type |
---|---|
kind | string |
Returns: TypeConverter | undefined
hasConverter
▸ hasConverter(kind
: string): boolean
Parameters:
Name | Type |
---|---|
kind | string |
Returns: boolean
▸ hasConverter(kind
: string): boolean
Parameters:
Name | Type |
---|---|
kind | string |
Returns: boolean
overrideConverter
▸ overrideConverter(kind
: string, converter
: TypeConverter): void
Parameters:
Name | Type |
---|---|
kind | string |
converter | TypeConverter |
Returns: void
▸ overrideConverter(kind
: string, converter
: TypeConverter): void
Parameters:
Name | Type |
---|---|
kind | string |
converter | TypeConverter |
Returns: void
reflect
▸ reflect(reflectedType
: any): Type
Parameters:
Name | Type |
---|---|
reflectedType | any |
Returns: Type
▸ reflect(reflectedType
: any): Type
Parameters:
Name | Type |
---|---|
reflectedType | any |
Returns: Type
registerConverter
▸ registerConverter(kind
: string, converter
: TypeConverter, shouldOverride?
: boolean): void
Parameters:
Name | Type |
---|---|
kind | string |
converter | TypeConverter |
shouldOverride? | boolean |
Returns: void
▸ registerConverter(kind
: string, converter
: TypeConverter, shouldOverride?
: boolean): void
Parameters:
Name | Type |
---|---|
kind | string |
converter | TypeConverter |
shouldOverride? | boolean |
Returns: void
removeConverter
▸ removeConverter(kind
: string): void
Parameters:
Name | Type |
---|---|
kind | string |
Returns: void
▸ removeConverter(kind
: string): void
Parameters:
Name | Type |
---|---|
kind | string |
Returns: void