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<T | typeof CANCELED_PROMISE_SYMBOL>;
}

Type Parameters

  • T extends any = any

    The type of the promise's resolved value.

  • P extends any[] = any

    The type of the function's arguments.

Methods

Methods