ACP v2 TypeScript SDK — EXPERIMENTAL DRAFT - v1.3.0
    Preparing search index...

    Type Alias BatchRequest<Req, Resp, Output>Experimental

    One request entry passed to Connection.sendBatch.

    type BatchRequest<Req = unknown, Resp = unknown, Output = Resp> = {
        kind: "request";
        method: string;
        params?: Req;
        mapResponse?: (response: Resp) => Output;
        options?: SendRequestOptions;
    }

    Type Parameters

    • Req = unknown
    • Resp = unknown
    • Output = Resp
    Index
    kind: "request"
    method: string
    params?: Req
    mapResponse?: (response: Resp) => Output