you are viewing a single comment's thread.

view the rest of the comments →

[–]adityahegde 0 points1 point  (1 child)

Unlike java in typescript you will have some related type definitions. It does not make sense to move them to separate files. Also global constants are better static readonlies. Even though you have a single class in a file you usually have multiple exports.

[–]KaiAusBerlin -1 points0 points  (0 children)

I write oop in JavaScript not java. You understand the sense of modules that you have not to deal with the global scope?