Type alias InParser<TValue>

InParser<TValue>: ((this, from, to) => [((this, value, errors) => TValue), ((this, value) => string)?])

Type Parameters

  • TValue

    Parsed value type.

Type declaration

    • (this, from, to): [((this, value, errors) => TValue), ((this, value) => string)?]
    • Input text parser.

      In addition to conversion from text to value and backward, it also able to report parse errors as validation messages.

      To convert input parser to control converter use InParser.converter() function.

      Parameters

      Returns [((this, value, errors) => TValue), ((this, value) => string)?]

Generated using TypeDoc