Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Converter<T>

Type parameters

  • T

Hierarchy

Index

Properties

Static type

type: Type

Methods

Abstract canConvertFrom

  • canConvertFrom(srcType: Type): boolean

canStringify

  • canStringify(): boolean

Abstract convertFrom

  • convertFrom(obj: any, srcType: Type): any

Abstract deserialize

  • deserialize(obj: any): T

fromString

  • fromString(str: string): T | never

Abstract inferInstanceOf

  • inferInstanceOf(obj: any): number

Abstract isValid

  • isValid(obj: object): boolean

Abstract serialize

  • serialize(obj: T): any

toString

  • toString(obj: T): string

tryFromString

  • tryFromString(str: string): T | null

Generated using TypeDoc