Formatting

This commit is contained in:
Jeroen Engels 2021-10-01 18:13:01 +02:00
parent 37aefb39e9
commit f4e923fdab

View File

@ -37,14 +37,20 @@ async function run(options: {
outputFilePath: string | null, outputFilePath: string | null,
optimizeSpeed: boolean optimizeSpeed: boolean
}) { }) {
return runWithLogger(options, console.log.bind(console)); return runWithLogger(
options,
console.log.bind(console)
);
} }
async function runWithLogger(options: { async function runWithLogger(
inputFilePath: string | undefined, options: {
outputFilePath: string | null, inputFilePath: string | undefined,
optimizeSpeed: boolean outputFilePath: string | null,
}, log: (message?: any, ...optionalParams: any[]) => void) { optimizeSpeed: boolean
},
log: (message?: any, ...optionalParams: any[]) => void
) {
const dirname = process.cwd(); const dirname = process.cwd();
let jsSource: string = ''; let jsSource: string = '';
let elmFilePath = undefined; let elmFilePath = undefined;