You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that glob patterns can only contain forward-slashes, not backward-slashes, so if you want to construct a glob pattern from path components, you need to use `path.posix.join()` instead of `path.join()`.
86
86
87
-
@param patterns - See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns).
88
-
@param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3) in addition to the ones in this package.
89
-
@returns The matching paths.
90
-
91
-
@example
92
-
```
93
-
import globby = require('globby');
94
-
95
-
(async () => {
96
-
const paths = await globby(['*', '!cake']);
97
-
98
-
console.log(paths);
99
-
//=> ['unicorn', 'rainbow']
100
-
})();
101
-
```
102
-
*/
103
-
(
104
-
patterns: string|readonlystring[],
105
-
options?: globby.GlobbyOptions
106
-
): Promise<string[]>;
107
-
108
-
/**
109
-
Find files and directories using glob patterns.
110
-
111
-
Note that glob patterns can only contain forward-slashes, not backward-slashes, so if you want to construct a glob pattern from path components, you need to use `path.posix.join()` instead of `path.join()`.
112
-
113
87
@param patterns - See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns).
114
88
@param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3) in addition to the ones in this package.
115
89
@returns The matching paths.
116
90
*/
117
-
sync(
91
+
sync: (
118
92
patterns: string|readonlystring[],
119
93
options?: globby.GlobbyOptions
120
-
):string[];
94
+
)=>string[];
121
95
122
96
/**
123
97
Find files and directories using glob patterns.
@@ -139,10 +113,10 @@ declare const globby: {
139
113
})();
140
114
```
141
115
*/
142
-
stream(
116
+
stream: (
143
117
patterns: string|readonlystring[],
144
118
options?: globby.GlobbyOptions
145
-
):NodeJS.ReadableStream;
119
+
)=>NodeJS.ReadableStream;
146
120
147
121
/**
148
122
Note that you should avoid running the same tasks multiple times as they contain a file system cache. Instead, run this method each time to ensure file system changes are taken into consideration.
@@ -151,10 +125,10 @@ declare const globby: {
151
125
@param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3) in addition to the ones in this package.
152
126
@returns An object in the format `{pattern: string, options: object}`, which can be passed as arguments to [`fast-glob`](https://github.com/mrmlnc/fast-glob). This is useful for other globbing-related packages.
153
127
*/
154
-
generateGlobTasks(
128
+
generateGlobTasks: (
155
129
patterns: string|readonlystring[],
156
130
options?: globby.GlobbyOptions
157
-
):globby.GlobTask[];
131
+
)=>globby.GlobTask[];
158
132
159
133
/**
160
134
Note that the options affect the results.
@@ -165,12 +139,38 @@ declare const globby: {
165
139
@param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3).
166
140
@returns Whether there are any special glob characters in the `patterns`.
167
141
*/
168
-
hasMagic(
142
+
hasMagic: (
169
143
patterns: string|readonlystring[],
170
144
options?: FastGlobOptions
171
-
):boolean;
145
+
)=>boolean;
172
146
173
147
readonlygitignore: Gitignore;
148
+
149
+
/**
150
+
Find files and directories using glob patterns.
151
+
152
+
Note that glob patterns can only contain forward-slashes, not backward-slashes, so if you want to construct a glob pattern from path components, you need to use `path.posix.join()` instead of `path.join()`.
153
+
154
+
@param patterns - See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns).
155
+
@param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3) in addition to the ones in this package.
0 commit comments