UNPKG

760 BTypeScriptView Raw
1import { GlobOptions } from './glob.js';
2/**
3 * Return true if the patterns provided contain any magic glob characters,
4 * given the options provided.
5 *
6 * Brace expansion is not considered "magic" unless the `magicalBraces` option
7 * is set, as brace expansion just turns one string into an array of strings.
8 * So a pattern like `'x{a,b}y'` would return `false`, because `'xay'` and
9 * `'xby'` both do not contain any magic glob characters, and it's treated the
10 * same as if you had called it on `['xay', 'xby']`. When `magicalBraces:true`
11 * is in the options, brace expansion _is_ treated as a pattern having magic.
12 */
13export declare const hasMagic: (pattern: string | string[], options?: GlobOptions) => boolean;
14//# sourceMappingURL=has-magic.d.ts.map
\No newline at end of file