diff --git a/types/minimatch/index.d.ts b/types/minimatch/index.d.ts index 5c9bd38a28..d5942d536b 100644 --- a/types/minimatch/index.d.ts +++ b/types/minimatch/index.d.ts @@ -27,7 +27,7 @@ declare namespace M { */ function makeRe(pattern: string, options?: IOptions): RegExp; - var Minimatch: IMinimatchStatic; + let Minimatch: IMinimatchStatic; interface IOptions { /** diff --git a/types/minimatch/minimatch-tests.ts b/types/minimatch/minimatch-tests.ts index 5b7a3bdb18..def9a43310 100644 --- a/types/minimatch/minimatch-tests.ts +++ b/types/minimatch/minimatch-tests.ts @@ -1,17 +1,17 @@ import mm = require("minimatch"); - -var pattern = "**/*.ts"; -var options = { +let b: boolean; +let pattern = "**/*.ts"; +let options = { debug: true }; -var m = new mm.Minimatch(pattern, options); -var r = m.makeRe(); +let m = new mm.Minimatch(pattern, options); +let r = m.makeRe(); -var f = ["test.ts"]; +let f = ["test.ts"]; mm.match(f, pattern, options); f.filter(mm.filter(pattern, options)); -var s: string = "hello"; -var b: boolean = mm(s, pattern, options); -var b: boolean = mm(s, pattern); +let s: string = "hello"; +b = mm(s, pattern, options); +b = mm(s, pattern); diff --git a/types/minimatch/tslint.json b/types/minimatch/tslint.json index 79acfd4fbe..d3e917b578 100644 --- a/types/minimatch/tslint.json +++ b/types/minimatch/tslint.json @@ -5,7 +5,6 @@ "no-duplicate-variable": false, "no-inferrable-types": false, "no-redundant-jsdoc-2": false, - "no-var-keyword": false, "prefer-const": false } }