Merge pull request #4236 from callmetango/grunt-IExpandedFilesConfig-fix-4207

gruntjs: Fixed type of IExpandedFilesConfig.cwd
This commit is contained in:
Masahiro Wakame
2015-05-01 13:21:26 +09:00
2 changed files with 12 additions and 2 deletions
+11 -1
View File
@@ -68,7 +68,17 @@ exports = (grunt: IGrunt) => {
asyncedTwoArgs(2, "values", (result: string) => {
console.log(result);
});
var fileMaps = grunt.file.expandMapping([''], '', { ext: '.js' });
// tests for module grunt.file
var expandedFilesConfig: grunt.file.IExpandedFilesConfig = {
expand: true,
cwd: 'src',
src: ['**/*.ts'],
dest: 'build',
ext: '.js',
flatten: false
};
var fileMaps = grunt.file.expandMapping([''], '', expandedFilesConfig);
fileMaps.length;
fileMaps[0].src.length;
fileMaps[0].dest;
+1 -1
View File
@@ -604,7 +604,7 @@ declare module grunt {
/**
* All {@link IExpandedFilesConfig.src} matches are relative to (but don't include) this path.
*/
cwd?: boolean
cwd?: string
/**
* Replace any existing extension with this value in generated {@link IExpandedFilesConfig.dest} paths.