AngularTS
    Preparing search index...

    Interface JsonLineStreamReadOptions<T>

    interface JsonLineStreamReadOptions<T = unknown> {
        encoding?: string;
        ignoreEmpty?: boolean;
        onLine?: (line: string) => void;
        onValue?: (value: T, line: string) => void;
        separator?: string | RegExp;
        signal?: AbortSignal;
    }

    Type Parameters

    • T = unknown

    Hierarchy (View Summary)

    Index

    Properties

    encoding?: string

    TextDecoder encoding. Defaults to utf-8.

    ignoreEmpty?: boolean

    Whether empty lines should be skipped. Defaults to true.

    onLine?: (line: string) => void

    Called for every complete decoded line.

    onValue?: (value: T, line: string) => void

    Called for every parsed JSON line.

    separator?: string | RegExp

    Line separator. Defaults to newline variants.

    signal?: AbortSignal

    Optional cancellation signal.