@metreeca/keep
    Preparing search index...

    Type Alias Deferred<R>

    A queued request paired with its promise-resolution hooks.

    Each batch a Handler receives is an array of Deferred entries. For each entry, the handler reads the request and settles it, calling resolve with its result (typed by Response) or reject with an error.

    type Deferred<R extends Request> = {
        request: R;
        resolve(value: Response<R>): void;
        reject(error: unknown): void;
    }

    Type Parameters

    Index

    Methods

    Properties

    Methods

    Properties

    request: R