qbit-rpc
    Preparing search index...

    Type Alias BatchItem<T>

    BatchItem:
        | { ok: true; value: T }
        | { error: RpcError | RpcResponseError; ok: false }

    One batch entry's outcome. Transport, timeout and size failures reject the whole batch instead. An entry whose parse throws, whatever it throws, has an RpcResponseError here.

    Type Parameters

    • T

    Type Declaration

    • { ok: true; value: T }
      • Readonlyok: true

        The entry succeeded.

      • Readonlyvalue: T

        Its result, validated and converted.

    • { error: RpcError | RpcResponseError; ok: false }
      • Readonlyerror: RpcError | RpcResponseError

        The node's error for this entry, or why its result did not validate.

      • Readonlyok: false

        The entry failed.