Options
All
  • Public
  • Public/Protected
  • All
Menu

Helper for transforming values to and from formats suitable for reading and writing to the server (i.e. object to string and string to object)

Hierarchy

  • PropFormatter

Index

Methods

Static formatForRead

  • Get a string representation of this property suitable for 'reading'

    Parameters

    Returns string

Static formatForWrite

  • Get a string representation of this property suitable for 'writing'

    Parameters

    Returns string

Static formatValueForRead

  • formatValueForRead(value: any, propDef: PropDef): any
  • Parameters

    Returns any

Static parse

  • parse(value: any, propDef: PropDef): any
  • Attempt to construct (or preserve) the appropriate data type given primitive (or already constructed) value.

    Parameters

    Returns any

Static toString

  • toString(o: any, propDef: PropDef): string
  • Render this value as a string

    Parameters

    Returns string

Generated using TypeDoc