Represents an interface for executing an action with a payload and returning data asynchronously.

interface IExecute<Data extends any = any, Payload extends any = object> {
    clear(): void;
    (payload?: Payload): Promise<null | Data>;
}

Type Parameters

  • Data extends any = any

    The type of data returned by the execution.

  • Payload extends any = object

    The type of payload accepted by the execution.

Methods

Methods