Properties
Static Private registered
registered
: Map<Type, Converter<any>> = new Map<Type, Converter<any>>()
Methods
Static canStringify
- canStringify(type: Type): boolean
-
Parameters
Returns boolean
Static convert
- convert(obj: any, srcType: Type, dstType: Type): any
Static hasConverter
- hasConverter(type: Type): boolean
-
Parameters
Returns boolean
Static inferType
- inferType(obj: any): Type
Static isValid
- isValid(obj: any, type: Type): boolean
-
Parameters
Returns boolean
Static registerConverter
- registerConverter(conv: object & object): void
Static toString
- toString(obj: any, type: Type): string
-
Parameters
Returns string
Static tryFromString
- tryFromString(obj: any, type: Type): any