All files / core/src/tasks tasks.ts

0% Statements 0/3
100% Branches 1/1
100% Functions 1/1
0% Lines 0/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8               
import type { TaskDefinitionRegistry } from './task-definition.types';
import type { TaskDefinition } from './tasks.types';
 
export function registerTask({ taskDefinitionRegistry, ...taskDefinition }: TaskDefinition & { taskDefinitionRegistry: TaskDefinitionRegistry }) {
  taskDefinitionRegistry.add(taskDefinition);
}