peberminta - v0.10.0
    Preparing search index...

    Type Alias Data<TToken, TOptions>

    Data that is passed around between composed Parsers.

    Intended to be static, although nothing prevents you from accumulating data inside options object - if it makes sense for a particular use case.

    Keep in mind that it is the same object that is passed around. Anything that requires rollbacks - have to be handled in the parser result value instead.

    type Data<TToken, TOptions> = {
        options: TOptions;
        tokens: TToken[];
    }

    Type Parameters

    • TToken
    • TOptions
    Index

    Properties

    Properties

    options: TOptions

    Parser options object.

    tokens: TToken[]

    Tokens array - the subject of parsing.