Do I have to make an entire module to load / import a class (or classes) into my project written in typescript or is there a shortcut?
I have a standard (per example on babylon for setting up a new es6 project) index.ts / .js as which holds my my main code body.
Right now I have a series of classes in a nodes.ts file which obviously compiles into a nodes.js file. These classes… make a series of different types of nodes!
How do I go about linking the nodes.js to index.js getting things to a point where I can do a simple var node1 = new uNode(); in typescript and have it reference correctly? I tried importing and requiring but I did not have much luck. I started reading up on making modules, but that seems overkill for a few classes and difficult to manage to flip between modules and the main development code to make small changes or additions. Before I go down playing with that route I wanted to make sure there was not a super obvious way of doing this more simply that I missed.