Represents a function wrapped in a promise that can be executed and cleared.

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

Type Parameters

  • T extends any = any

    The type of the promise result.

  • P extends any[] = any

    The type of the function arguments.

  • Parameters

    • ...args: P

    Returns Promise<T>

Methods

Methods