Merge pull request #3144 from rogierschouten/minimatch-1.0.0

Bugfix in minimatch.d.ts
This commit is contained in:
Masahiro Wakame
2014-11-17 11:14:50 +09:00
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -13,3 +13,7 @@ var f = ["test.ts"];
mm.match(f, pattern, options);
mm.filter('foo')('bar');
var s: string = "hello";
var b: boolean = mm(s, pattern, options);
var b: boolean = mm(s, pattern);
+2 -2
View File
@@ -1,11 +1,11 @@
// Type definitions for Minimatch
// Type definitions for Minimatch 1.0.0
// Project: https://github.com/isaacs/minimatch
// Definitions by: vvakame <https://github.com/vvakame/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module "minimatch" {
function M(target:string, pattern:string, options?:M.IOptions):void;
function M(target:string, pattern:string, options?:M.IOptions): boolean;
module M {
function match(filenames:string[], pattern:string, options?:IOptions):string[];