torotask
Version:
Task queue processing in NodeJS based on BullMQ and Redis
23 lines • 633 B
TypeScript
import type { TaskDefinitionRegistry } from './task.js';
/**
* Defines a task group with a name and task definitions
*
* @template TDefs The type of task definitions contained in this group
*/
export interface TaskGroupDefinition<TDefs extends TaskDefinitionRegistry> {
/**
* The name of the task group
*/
name: string;
/**
* The task definitions contained in this group
*/
definitions: TDefs;
}
/**
* Registry of task group definitions
*/
export interface TaskGroupDefinitionRegistry {
[groupName: string]: TaskGroupDefinition<any>;
}
//# sourceMappingURL=task-group-definition.d.ts.map