Exporting a Function as Module?

Topics: General
Oct 3, 2012 at 6:33 PM

In amd, it's possible to export a function as a module. Is there a way to do that in TypeScript?

Oct 4, 2012 at 12:48 AM

You mean as per the question at http://stackoverflow.com/questions/12696236/module-exports-in-typescript ?  If so, then no.  Not currently.

Oct 4, 2012 at 1:18 AM

Yes. Exactly like that. That is precisely the scenario I need. It's a very common occurrence in the wild and should be supported I would think.