I\'m writing a grunt task in TypeScript. I\'m trying to translate something I already have in JavaScript.
So, when grunt runs a task, it runs a function. When it ru
Now (from TS 2.0) you can specify function's this type by using fake this parameter (should be the first one):
this
grunt.registerMultiTask('clean', function(this: SomeType) { //... });
this parameters are fake parameters that come first in the parameter list of a function
More info here