@villedemontreal/workit-types
Version:
TypeScript types for Workit
10 lines (9 loc) • 333 B
TypeScript
import { IMessage } from '../core/message';
export interface ITask<I> {
readonly name: string;
/**
* All your business logic related to the task should be executed here.
* A task tends to be a controller, so you can inject services among other things in the ctor
*/
execute(model: I): Promise<IMessage>;
}