these are really some kind of array I promise typescript

This commit is contained in:
Daniel Olsen 2020-07-16 18:48:52 +02:00
parent 4b313d6dcd
commit 268f73a9ce
1 changed files with 2 additions and 1 deletions

View File

@ -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[];
}