Represents a wrapped function that returns a Promise.

interface IWrappedFn<T extends any = any, P extends any[] = any> {
    cancel(): void;
    clear(): void;
    (...args: P): Promise<typeof CANCELED_PROMISE_SYMBOL | T>;
}

Type Parameters

  • T extends any = any

    The type of the value returned by the wrapped function.

  • P extends any[] = any

    The types of the parameters of the wrapped function.

Methods

Methods