Files
DefinitelyTyped/minimatch/minimatch-tests.ts
Bart van der Schoor 518fbb37c7 added filter method to minimatch
and options optional
2014-05-26 23:02:06 +02:00

16 lines
278 B
TypeScript

/// <reference path="./minimatch.d.ts" />
import mm = require("minimatch");
var pattern = "**/*.ts";
var options = {
debug: true
};
var m = new mm.Minimatch(pattern, options);
var r = m.makeRe();
var f = ["test.ts"];
mm.match(f, pattern, options);
mm.filter('foo')('bar');