Type alias ParseResult<S>

ParseResult<S>: Readonly<{
    input: DataView;
    message: string;
    type: typeof failureNominal;
} | {
    resume: ((buf) => ParseResult<S>);
    type: typeof partialNominal;
} | {
    rest: DataView;
    state: S;
    type: typeof parseDoneNominal;
}>

A result of parsing with a state S.

Type Parameters

  • S

Generated using TypeDoc