mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
18 lines
397 B
TypeScript
18 lines
397 B
TypeScript
import mm = require("minimatch");
|
|
let bool: boolean;
|
|
const pattern = "**/*.ts";
|
|
const options = {
|
|
debug: true
|
|
};
|
|
const m = new mm.Minimatch(pattern, options);
|
|
const regxp = m.makeRe();
|
|
|
|
const files: ReadonlyArray<string> = ["test.ts"];
|
|
mm.match(files, pattern, options);
|
|
|
|
files.filter(mm.filter(pattern, options));
|
|
|
|
const str = "hello";
|
|
bool = mm(str, pattern, options);
|
|
bool = mm(str, pattern);
|