Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Formatted<A>

Interface for mapping a given type to a formatted string and back.

Type parameters

  • A

Hierarchy

  • Formatted

Index

Methods

fromFormatted

  • fromFormatted(formatted: string): A
  • Retrieve a value from a given string.

    Parameters

    • formatted: string

      the format string from which to obtain a value

    Returns A

    the obtained value

toFormatted

  • toFormatted(value: A): string
  • Format the given value

    Parameters

    • value: A

      the value to be formatted

    Returns string

    the formatted string

Generated using TypeDoc