From bdaf07001f230add6bee189e4d5a7c8282e2511c Mon Sep 17 00:00:00 2001 From: Arda TANRIKULU Date: Tue, 23 Jul 2019 23:52:21 -0400 Subject: [PATCH] Fix fileLoader signature #210 --- src/file_loader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file_loader.ts b/src/file_loader.ts index 7acf100..e453567 100644 --- a/src/file_loader.ts +++ b/src/file_loader.ts @@ -6,7 +6,7 @@ const fileLoader = ( path: string, { recursive = false, extensions = DEFAULT_EXTENSIONS, globOptions = {}, ignoreIndex = true, } = {}, -) => { +): any[] => { return loadSchemaFiles(path, { globOptions, extensions: extensions.map(e => e.startsWith('.') ? e.substr(1, e.length - 1) : e).filter(e => DEFAULT_EXTENSIONS.includes(e)),