I'm somewhat confused with modules in typescript. I read somewhere that modules are now considered and written as namespaces; so should I be writing namespace instead of writing modules in my project? All tutorials that use modules instead of namespace seem to work regardless. Are they interchangeable words? namespace/module when coding.
I understand that you use import when using modules at the least but have seen no project that separates their files for Phaser use this.
I am
Hi, in recent days I had to work with TypeScript compiling from command line and all above can be simplified in two points:
1] in your tsconfig.json, you do not have to list files at all. Compiler automatically takes all .ts ant.tsx files from curent directory and all subsequent directories. Your tsconfig can be as simple as this:
{
"compilerOptions": {
"module": "none",
"target": "es5",
"noImplicitAny": false,
"sourceMap": true,
"outFile": "m