@ptkl/sdk - v1.3.4
    Preparing search index...

    Type Alias AggregateChainable

    Chainable aggregate result that supports both buffered and streaming modes

    type AggregateChainable = {
        catch: (reject: (error: any) => any) => Promise<any>;
        onData: (callback: StreamCallback) => AggregateChainable;
        onEnd: (callback: () => void) => AggregateChainable;
        onError: (callback: (error: Error) => void) => AggregateChainable;
        then: <T>(
            resolve?: (value: any) => T,
            reject?: (error: any) => any,
        ) => Promise<T>;
    }
    Index

    Properties

    catch: (reject: (error: any) => any) => Promise<any>
    onData: (callback: StreamCallback) => AggregateChainable
    onEnd: (callback: () => void) => AggregateChainable
    onError: (callback: (error: Error) => void) => AggregateChainable
    then: <T>(
        resolve?: (value: any) => T,
        reject?: (error: any) => any,
    ) => Promise<T>