TS6504

error TS6504: File ‘plain_js.js’ is a JavaScript file. Did you mean to enable the ‘allowJs’ option?

Broken Code ❌

1
tsc mycode.js

Fixed Code ✔️

1
tsc mycode.js --allowJs