@graphql-tools/load-files

Interfaces

Functions

Functions

loadFiles

loadFiles(pattern: string | string[], options: LoadFilesOptions): Promise‹any[]›

Defined in packages/load-files/src/index.ts:212

Asynchronously loads files using the provided glob pattern.

Parameters:

NameTypeDefaultDescription
patternstring | string[]-Glob pattern or patterns to use when loading files
optionsLoadFilesOptionsLoadFilesDefaultOptionsAdditional options

Returns: Promise‹any[]›


loadFilesSync

loadFilesSyncT›(pattern: string | string[], options: LoadFilesOptions): T[]

Defined in packages/load-files/src/index.ts:116

Synchronously loads files using the provided glob pattern.

Type parameters:

T

Parameters:

NameTypeDefaultDescription
patternstring | string[]-Glob pattern or patterns to use when loading files
optionsLoadFilesOptionsLoadFilesDefaultOptionsAdditional options

Returns: T[]