@graphql-tools/load-files
Interfaces
Functions
Functions
loadFiles
▸ loadFiles(pattern
, options?
): Promise
<any
[]>
Asynchronously loads files using the provided glob pattern.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
pattern | string | string [] | undefined | Glob pattern or patterns to use when loading files |
options | LoadFilesOptions | LoadFilesDefaultOptions | Additional options |
Returns
Promise
<any
[]>
Defined in
packages/load-files/src/index.ts:230
loadFilesSync
▸ loadFilesSync<T
>(pattern
, options?
): T
[]
Synchronously loads files using the provided glob pattern.
Type parameters
Name | Type |
---|---|
T | any |
Parameters
Name | Type | Default value | Description |
---|---|---|---|
pattern | string | string [] | undefined | Glob pattern or patterns to use when loading files |
options | LoadFilesOptions | LoadFilesDefaultOptions | Additional options |
Returns
T
[]