TypeScript compiler (tsc) adds extra `export {};` line.
Closed this issue · 1 comments
fabrizzio-gz commented
TypeScript recognizes source files as modules because they import types and adds an extra export {};
line that makes files unreadable by web browser. This is the desired behavior of TypeScript compiler at the current version read more.
Current solution: manually delete extra export {};
line on generated .js files.
fabrizzio-gz commented
Updated files to include types globally by adding a global.d.ts
file. Problem solved.