Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BooleanConverter

Hierarchy

  • Converter<boolean | Boolean>
    • BooleanConverter

Index

Properties

Static type

type: Type = Types.Boolean

Methods

canConvertFrom

  • canConvertFrom(srcType: Type): boolean

canStringify

  • canStringify(): boolean

convertFrom

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

deserialize

  • deserialize(obj: boolean | object): boolean

fromString

  • fromString(str: string): boolean | Boolean | never

inferInstanceOf

  • inferInstanceOf(obj: any): number

isValid

  • isValid(obj: any): boolean

serialize

  • serialize(obj: boolean | Boolean): boolean

toString

  • toString(obj: boolean | Boolean): string

tryFromString

  • tryFromString(str: string): any

Static Private isPrimitive

  • isPrimitive(obj: boolean | Boolean): obj is boolean

Generated using TypeDoc