Now (from TS 2.0) you can specify function’s this type by using fake this parameter (should be the first one):
grunt.registerMultiTask('clean', function(this: SomeType) {
//...
});
thisparameters are fake parameters that come first in the parameter list of a function
More info here