mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-31 03:02:04 +08:00
fixing file.expand typing
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
|
||||
|
||||
// Official code sample from
|
||||
// Official code sample from
|
||||
// http://gruntjs.com/getting-started#an-example-gruntfile
|
||||
|
||||
interface MyTaskData {
|
||||
@@ -12,7 +12,7 @@ interface MyOptions {
|
||||
repeat: number;
|
||||
}
|
||||
|
||||
// exports should work same as module.exports
|
||||
// exports should work same as module.exports
|
||||
exports = (grunt: IGrunt) => {
|
||||
|
||||
// Project configuration.
|
||||
@@ -126,4 +126,10 @@ exports.exports = function(grunt: IGrunt) {
|
||||
});
|
||||
});
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
let myTest = function (grunt: IGrunt) {
|
||||
grunt.file.expand(['*.ts']);
|
||||
grunt.file.expand('*.ts');
|
||||
}
|
||||
|
||||
2
types/grunt/index.d.ts
vendored
2
types/grunt/index.d.ts
vendored
@@ -445,7 +445,7 @@ declare namespace grunt {
|
||||
* File paths are relative to the Gruntfile unless the current working directory is changed with
|
||||
* grunt.file.setBase or the --base command-line option.
|
||||
*/
|
||||
expand(patterns: string[]): string[];
|
||||
expand(patterns: string | string[]): string[];
|
||||
expand(options: IFilesConfig, patterns: string[]): string[];
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user