vapor-chamber API reference - v1.16.0
    Preparing search index...

    Type Alias StreamParserCallbacks

    type StreamParserCallbacks = {
        onValue?: (key: string, value: unknown, path: StreamParserPath) => void;
        onObjectStart?: (path: StreamParserPath) => void;
        onObjectEnd?: (path: StreamParserPath) => void;
        onArrayStart?: (path: StreamParserPath) => void;
        onArrayEnd?: (path: StreamParserPath) => void;
        onError?: (error: StreamParserError) => void;
        onEnd?: () => void;
    }
    Index
    onValue?: (key: string, value: unknown, path: StreamParserPath) => void

    Emitted for each complete value (object/array members and top-level scalars).

    onObjectStart?: (path: StreamParserPath) => void
    onObjectEnd?: (path: StreamParserPath) => void
    onArrayStart?: (path: StreamParserPath) => void
    onArrayEnd?: (path: StreamParserPath) => void
    onError?: (error: StreamParserError) => void
    onEnd?: () => void