You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
osyrisrblx
changed the title
tsconfig option to assume every .ts file is a module
Add a tsconfig option to assume every .ts file is a module
Oct 3, 2018
Currently with TypeScript, if I create two files and put
const foo = "bar";
in each, I will get the following error:For the specific environment I'm using, this is not the case at runtime. I'd like to silence this error with a tsconfig.json option.
One current workaround is to put
export {};
in all my files to instruct TypeScript that the file is a module, but I'd like to avoid doing so.The text was updated successfully, but these errors were encountered: