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
Copy file name to clipboardexpand all lines: index.d.ts
+11-1
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ import {Options as FastGlobOptions, Entry} from 'fast-glob';
4
4
exporttypeGlobEntry=Entry;
5
5
6
6
exportinterfaceGlobTask{
7
-
readonlypattern: string;
7
+
readonlypatterns: string[];
8
8
readonlyoptions: Options;
9
9
}
10
10
@@ -141,6 +141,16 @@ Note that you should avoid running the same tasks multiple times as they contain
141
141
exportfunctiongenerateGlobTasks(
142
142
patterns: string|readonlystring[],
143
143
options?: Options
144
+
): Promise<GlobTask[]>;
145
+
146
+
/**
147
+
@see generateGlobTasks
148
+
149
+
@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.
Copy file name to clipboardexpand all lines: readme.md
+7-1
Original file line number
Diff line number
Diff line change
@@ -110,10 +110,16 @@ import {globbyStream} from 'globby';
110
110
111
111
### generateGlobTasks(patterns, options?)
112
112
113
-
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.
113
+
Returns an `Promise<object[]>` in the format `{patterns: 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.
114
114
115
115
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.
116
116
117
+
### generateGlobTasksSync(patterns, options?)
118
+
119
+
Returns an `object[]` in the format `{patterns: 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.
120
+
121
+
Takes the same arguments as `generateGlobTasks`.
122
+
117
123
### isDynamicPattern(patterns, options?)
118
124
119
125
Returns a `boolean` of whether there are any special glob characters in the `patterns`.
0 commit comments