Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PartialConverter<T, T>

This class includes sensible no-op stubs for all the functions of Converter. Suitable for instances where you just want to define serialize/deserialize, subtype conversion, and that's it.

Type parameters

  • T

  • T

Hierarchy

Index

Properties

Static type

type: Type

Methods

canConvertFrom

  • canConvertFrom(srcType: Type): boolean

canStringify

  • canStringify(): boolean

convertFrom

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

convertFromSuperType

  • convertFromSuperType(obj: any): any

Abstract deserialize

  • deserialize(obj: any): T

fromString

  • fromString(str: string): T | never

Abstract inferInstanceOf

  • inferInstanceOf(obj: any): number

isValid

  • isValid(obj: any): boolean

Abstract serialize

  • serialize(obj: any): any

toString

  • toString(obj: T): string

tryFromString

  • tryFromString(str: string): T | null

Generated using TypeDoc