Options
All
  • Public
  • Public/Protected
  • All
Menu

Class StringConverter

Hierarchy

Index

Properties

Static type

type: Type = Types.String

Methods

canConvertFrom

  • canConvertFrom(srcType: Type): boolean

canStringify

  • canStringify(): boolean

convertFrom

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

deserialize

  • deserialize(obj: string | object): string

fromString

  • fromString(str: string): string | String | never

inferInstanceOf

  • inferInstanceOf(obj: any): number

isValid

  • isValid(obj: Object): boolean

serialize

  • serialize(obj: string | String): string

toString

  • toString(obj: string): string

tryFromString

  • tryFromString(str: string): string

Static Private isPrimitive

  • isPrimitive(obj: string | String): obj is string

Generated using TypeDoc