diff --git a/packages/load-files/src/index.ts b/packages/load-files/src/index.ts index b3132d913e9..f5e6a57d03e 100644 --- a/packages/load-files/src/index.ts +++ b/packages/load-files/src/index.ts @@ -129,7 +129,7 @@ const LoadFilesDefaultOptions: LoadFilesOptions = { * @param pattern Glob pattern or patterns to use when loading files * @param options Additional options */ -export function loadFilesSync( +export function loadFilesSync( pattern: string | string[], options: LoadFilesOptions = LoadFilesDefaultOptions, ): T[] { @@ -227,10 +227,10 @@ const checkExtension = ( * @param pattern Glob pattern or patterns to use when loading files * @param options Additional options */ -export async function loadFiles( +export async function loadFiles( pattern: string | string[], options: LoadFilesOptions = LoadFilesDefaultOptions, -): Promise { +): Promise { const execOptions = { ...LoadFilesDefaultOptions, ...options }; const relevantPaths = await scanForFiles( await Promise.all(