Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Converters

Hierarchy

  • Converters

Index

Properties

Static Private registered

registered: Map<Type, Converter<any>> = new Map<Type, Converter<any>>()

Methods

Static canStringify

  • canStringify(type: Type): boolean

Static convert

  • convert(obj: any, srcType: Type, dstType: Type): any

Static deserialize

Static hasConverter

  • hasConverter(type: Type): boolean

Static inferType

  • inferType(obj: any): Type

Static isValid

  • isValid(obj: any, type: Type): boolean

Static registerConverter

  • registerConverter(conv: object & object): void

Static serialize

Static toString

  • toString(obj: any, type: Type): string

Static tryFromString

  • tryFromString(obj: any, type: Type): any

Generated using TypeDoc