Can typescript export a function?
It’s hard to tell what you’re going for in that example. exports = is about exporting from external modules, but the code sample you linked is an internal module. Rule of thumb: If you write module foo { … }, you’re writing an internal module; if you write export something something at top-level in a … Read more