From 268f73a9ce65686beb8beae9518cf9eb24cb0c0c Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Thu, 16 Jul 2020 18:48:52 +0200 Subject: [PATCH] these are really some kind of array I promise typescript --- x2i/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/x2i/index.ts b/x2i/index.ts index 40c4d68..4ab7347 100644 --- a/x2i/index.ts +++ b/x2i/index.ts @@ -77,8 +77,9 @@ const matchType: { [key: string]: IMatchInstructions } = { * @returns Compiled keys. */ function readKeys(fpath: string) { - return yaml + var keys: any = yaml .safeLoad(fs.readFileSync(fpath, "utf8")) + return keys .map(compileKey) .filter(Boolean) as CompiledReplacer[]; }