mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
Grunt this typings (#13493)
* Fixes semicolon * Fixes ordering * Fixes this typings * Fixes tests * Revert to IMultiTask<any>
This commit is contained in:
committed by
Mohamed Hegazy
parent
4a723dcede
commit
9dad6b2b06
@@ -9,6 +9,7 @@ interface MyTaskData {
|
||||
|
||||
interface MyOptions {
|
||||
sourceRoot: string;
|
||||
repeat: number;
|
||||
}
|
||||
|
||||
// exports should work same as module.exports
|
||||
@@ -35,8 +36,8 @@ exports = (grunt: IGrunt) => {
|
||||
grunt.registerTask('default', ['uglify']);
|
||||
|
||||
grunt.registerMultiTask('mytask', "short description", function() {
|
||||
var currenttask: grunt.task.IMultiTask<MyTaskData> = this;
|
||||
var options = currenttask.options<MyOptions>({
|
||||
var currenttask = this;
|
||||
var options = currenttask.options({
|
||||
sourceRoot: "default"
|
||||
});
|
||||
var valid = false;
|
||||
|
||||
406
grunt/index.d.ts
vendored
406
grunt/index.d.ts
vendored
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user