UNPKG

@villedemontreal/workit-types

Version:
10 lines (9 loc) 333 B
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>; }