Response of an asynchronous query.

interface AsyncQueryResult<ItemType extends IndexableThing> {
    cancel(msg?: string): void;
    total?: Promise<number>;
}

Type Parameters

Hierarchy

Properties

Methods

Properties

total?: Promise<number>

Total number of available items in the result.

transport the 'total' value on the result array.

Methods

  • Function to cancel the query.

    Parameters

    • Optionalmsg: string

    Returns void

    Use AbortOptions (AbortSignal)