I'm building a module and I want to name a class 'Node'. Looks like 'Node' already exists in the global scope. A module file has an isolated scope, so it will not replace the global 'Node' class. How can I tell typescript that a file is a module so it does not complain about duplicates?
models.ts:
class Node {}
If I add export to the Node class, the warning is gone.
tsc --version
Version 1.8.9