I'm just learning typescript and following an online course. I've hit a bit of a snag immediately and must be a vscode setting or something?
When I compile app.ts it generates the app.js but immediately I get a typescript error because the person variable is conflicting with the person variable in the app.js which was just generated. The error is "Cannot redeclare block-scoped variable".
Can someone tell me how to avoid this?


tsconfig.jsonand folder structure, it'd be easier to help configure TypeScript not to treat its output as additional input.