UNPKG

743 BTypeScriptView Raw
1// Type definitions for is-glob 4.0
2// Project: https://github.com/micromatch/is-glob
3// Definitions by: mrmlnc <https://github.com/mrmlnc>
4// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
6declare function isGlob(pattern?: string | string[] | null, options?: isGlob.Options): boolean;
7
8declare namespace isGlob {
9 interface Options {
10 /**
11 * When `false` the behavior is less strict in determining if a pattern is a glob. Meaning that some patterns
12 * that would return false may return true. This is done so that matching libraries like micromatch
13 * have a chance at determining if the pattern is a glob or not.
14 */
15 strict?: boolean | undefined;
16 }
17}
18
19export = isGlob;