Type alias SuccessHandler<T, S>

SuccessHandler<T, S>: ((ctx) => ((result) => ParseResult<S>))

Type Parameters

  • T

  • S

Type declaration

    • (ctx): ((result) => ParseResult<S>)
    • A function that handles a success on parsing by a Decoder.

      Parameters

      Returns ((result) => ParseResult<S>)

      The result of parsing. It is usually a done.

Generated using TypeDoc