UNPKG

@villedemontreal/workit-core

Version:

This package provides default and no-op implementations of the WorkIt types for client packages.

11 lines (10 loc) 423 B
import { IMessage, ITask } from '@villedemontreal/workit-types'; import 'reflect-metadata'; export declare abstract class TaskBase<I> implements ITask<I> { get 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 */ abstract execute(model: I): Promise<IMessage>; }