How would I use the same typescript class or module in a client side javascript file and in a server side node.js file?
I found a solution here where you manually create the exports variable instead of using TypeScript's export keyword but then you lose the type information for the class when you include it in node.js with the require keyword.