Closed zEh- closed 2 years ago
TypeScript return types go missing with --fix.
function main(): void { console.log('main') } function notVoid(): number { const a = 3 return a * 2 }
const main = (): void => { console.log('main') } const notVoid = (): number => { const a = 3 return a * 2 }
const main = () => { console.log('main') }; const notVoid = () => { const a = 3 return a * 2 };
This was fixed by @harelmo in #14, released in 3.1.4
3.1.4
Description
TypeScript return types go missing with --fix.
Original:
Expected:
Actual: