UNPKG

@decaf-ts/core

Version:

Core persistence module for the decaf framework

17 lines (16 loc) 637 B
/** * @description Interface for executable operations * @summary Defines a contract for objects that can execute an operation and return a result * @template R - The type of result returned by the execute method * @interface Executor * @memberOf module:core */ export interface Executor<R> { /** * @description Executes the operation * @summary Performs the operation and returns a promise that resolves to the result * @template R - The type of result returned by the execute method * @return {Promise<R>} A promise that resolves to the result of type R */ execute(...args: any[]): Promise<R>; }