mise API - v0.0.0
    Preparing search index...

    Interface ParseResult<T>

    The outcome of validating a message at the boundary.

    interface ParseResult<T> {
        error?: string;
        ok: boolean;
        value?: T;
    }

    Type Parameters

    • T
    Index
    error?: string

    A human-readable reason, when not ok.

    ok: boolean

    Whether the input was a valid message.

    value?: T

    The parsed message, when ok.