Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Converters

Hierarchy

  • Converters

Index

Methods

Object literals

Methods

Static all

Static allProps

  • Returns a Converter that copies the object's properties to a 'normal' object to be normalized, and assumes a no-arg constructor after which the properties can be copied back.

    Parameters

    Returns ConverterConfig

Static fromIterable

  • Returns a Converter instance that assumes the class is Iterable, and has a constructor that takes the array resulting from the Iterable to get back the original instance.\

    Parameters

    • constructor: object

      the class constructor

    Returns ConverterConfig

Static pick

  • Returns a Converter similar to allProps but with the option to specify which properties to copy.

    Parameters

    • constructor: EmptyConstructor

      the class constructor

    • Rest ...props: string[]

      the list of property names to copy

    Returns ConverterConfig

Static valueOf

  • Returns a Converter instance that assumes a valueOf method returning the state, and a single argument constructor taking the state to get back the original instance.

    Parameters

    Returns ConverterConfig

Object literals

Static default

default: object

The default Converter configuration for standard objects

Generated using TypeDoc