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,
optimizeSpeed: boolean
}) {
return runWithLogger(options, console.log.bind(console));
return runWithLogger(
options,
console.log.bind(console)
);
}
async function runWithLogger(options: {
async function runWithLogger(
options: {
inputFilePath: string | undefined,
outputFilePath: string | null,
optimizeSpeed: boolean
}, log: (message?: any, ...optionalParams: any[]) => void) {
},
log: (message?: any, ...optionalParams: any[]) => void
) {
const dirname = process.cwd();
let jsSource: string = '';
let elmFilePath = undefined;