mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
18 lines
400 B
TypeScript
18 lines
400 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);
|