1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35declare module 'tinyglobby' {
import typeof FSModule from 'fs';
declare type FileSystemAdapter = Partial<FSModule>;
declare type GlobOptions = {
absolute?: boolean,
braceExpansion?: boolean,
caseSensitiveMatch?: boolean,
cwd?: string | URL,
debug?: boolean,
deep?: number,
dot?: boolean,
expandDirectories?: boolean,
extglob?: boolean,
followSymbolicLinks?: boolean,
fs?: FileSystemAdapter,
globstar?: boolean,
ignore?: string | $ReadOnlyArray<string>,
onlyDirectories?: boolean,
onlyFiles?: boolean,
signal?: AbortSignal,
};
declare type GlobModule = {
convertPathToPattern(path: string): string;
escapePath(path: string): string;
isDynamicPattern(pattern: string, options?: { caseSensitiveMatch: boolean }): boolean;
glob(patterns: string | $ReadOnlyArray<string>, options?: GlobOptions): Promise<string[]>;
globSync(patterns: string | $ReadOnlyArray<string>, options?: GlobOptions): string[];
};
declare module.exports: GlobModule;
}