TypeScript with Node.js

Topics: General
Nov 26, 2013 at 2:53 PM
Hi. I'm trying to use TS with Node.js framework, but it's a little tricky.

I added a question on stackoverflow: http://stackoverflow.com/questions/20219450/typescript-use-typescript-require-shared-files

In summary, I can't use the keyword extends on my classes if I do inheritance, it's not working, the class is not found if I add the keyword.
It's one issue.

Maybe do you have some tips for Node.js use? I tried the typescript-required but that's not working, (see the link), do you have any solution?

What I want to do is to have files shared between the server and the client, that means the server will use directly the file wrote using TypeScript but the client will get the file merged with a lot of other files and zipped and I need that files are compatible with both client (browser) and server.

Thank you for your help.

PS: I use WebStorm 7.1 IDE.
Coordinator
Nov 26, 2013 at 10:30 PM
(for those following the forum, the thread has moved over to stackoverflow via the link @Vadorequest mentions)