Type alias Matcher<TToken, TOptions, TValue>

Matcher<TToken, TOptions, TValue>: ((data: Data<TToken, TOptions>, i: number) => Match<TValue>)

Type Parameters

  • TToken

  • TOptions

  • TValue

Type declaration

    • (data: Data<TToken, TOptions>, i: number): Match<TValue>
    • Special case of Parser function. Accepts Data and token position, always returns a Match.

      Parameters

      • data: Data<TToken, TOptions>

        Data object (tokens and options).

      • i: number

        Parser position in the tokens array.

      Returns Match<TValue>

Generated using TypeDoc