UNPKG

647 BTypeScriptView Raw
1import { MinimatchOptions } from './index.js';
2/**
3 * Escape all magic characters in a glob pattern.
4 *
5 * If the {@link windowsPathsNoEscape | GlobOptions.windowsPathsNoEscape}
6 * option is used, then characters are escaped by wrapping in `[]`, because
7 * a magic character wrapped in a character class can only be satisfied by
8 * that exact character. In this mode, `\` is _not_ escaped, because it is
9 * not interpreted as a magic character, but instead as a path separator.
10 */
11export declare const escape: (s: string, { windowsPathsNoEscape, }?: Pick<MinimatchOptions, 'windowsPathsNoEscape'>) => string;
12//# sourceMappingURL=escape.d.ts.map
\No newline at end of file