Add missing type annotations

This commit is contained in:
tkQubo
2015-08-21 23:31:59 +09:00
parent 8a1945e638
commit 8cc0285d34
+2 -2
View File
@@ -23,7 +23,7 @@ orchestrator.add('thing2', function() {
orchestrator.add('mytask', ['array', 'of', 'task', 'names'], function() {
// Do stuff
});
orchestrator.add('thing2', function(callback){
orchestrator.add('thing2', function(callback: any){
var err: any = null;
// do stuff
callback(err);
@@ -65,7 +65,7 @@ orchestrator.hasTask('thing1');
// orchestrator.start(tasks...[, cb]);
//
orchestrator.start('thing1', 'thing2', 'thing3', 'thing4', function (err) {
orchestrator.start('thing1', 'thing2', 'thing3', 'thing4', function (err: any) {
// all done
});
orchestrator.start(['thing1','thing2'], ['thing3','thing4']);