Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NumberConverter

Hierarchy

Index

Properties

Static type

type: Type = Types.Number

Methods

canConvertFrom

  • canConvertFrom(srcType: Type): boolean

canStringify

  • canStringify(): boolean

convertFrom

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

deserialize

  • deserialize(obj: number | object): number

fromString

  • fromString(str: string): Number | number | never

inferInstanceOf

  • inferInstanceOf(obj: any): number

isValid

  • isValid(obj: Object): boolean

serialize

  • serialize(obj: number): number | object

toString

  • toString(obj: Number | number): string

tryFromString

  • tryFromString(str: string): any

Static Private isPrimitive

  • isPrimitive(obj: number | Number): obj is number

Generated using TypeDoc