This commit is contained in:
Timo Hocker 2020-05-24 19:43:13 +02:00
parent cd7041c2e1
commit 32deb35fec

View File

@ -12,7 +12,7 @@ import fs from 'fs-extra';
export class FileMapper {
public static async map_all_files (
folder: string,
mutator: Function,
mutator: (data: string, file: string, args: Array<unknown>) => string|null,
args: Array<unknown> = []
): Promise<void> {
const files = await fs.readdir (folder);