Fix undertaker typings - removed deps param

This commit is contained in:
Tommaso Ricci
2018-02-17 16:11:37 +01:00
parent 2e4aad4d1f
commit e74562b165
2 changed files with 0 additions and 15 deletions

View File

@@ -57,14 +57,6 @@ declare class Undertaker extends EventEmitter {
*/
task(taskName: string, fn: Undertaker.TaskFunction): void;
/**
* Register the task by the taskName.
* @param taskName - Task name.
* @param dependencies - Task dependencies.
* @param fn - Task function.
*/
task(taskName: string, dependencies: string[], fn: Undertaker.TaskFunction): void;
/**
* Register the task by the name property of the function.
* @param fn - Task function.

View File

@@ -22,13 +22,6 @@ taker.task("task3", () => {
});
});
taker.task("task3", ["task1"], () => {
return new Promise((resolve, reject) => {
// do things depending on "task1"
resolve(); // when everything is done
});
});
taker.task("combined", taker.series("task1", "task2"));
taker.task("all", taker.parallel("combined", "task3"));