these are really some kind of array I promise typescript
This commit is contained in:
parent
4b313d6dcd
commit
268f73a9ce
|
@ -77,8 +77,9 @@ const matchType: { [key: string]: IMatchInstructions } = {
|
||||||
* @returns Compiled keys.
|
* @returns Compiled keys.
|
||||||
*/
|
*/
|
||||||
function readKeys(fpath: string) {
|
function readKeys(fpath: string) {
|
||||||
return yaml
|
var keys: any = yaml
|
||||||
.safeLoad(fs.readFileSync(fpath, "utf8"))
|
.safeLoad(fs.readFileSync(fpath, "utf8"))
|
||||||
|
return keys
|
||||||
.map(compileKey)
|
.map(compileKey)
|
||||||
.filter(Boolean) as CompiledReplacer[];
|
.filter(Boolean) as CompiledReplacer[];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue