Post has attachment

Post has attachment

http://scalapro.net/typescript-defining-a-top-level-function/



I use Lift as a web framework. Lift allows to generate JavaScript code and than to execute it on the page. I needed to execute a JavaScript function from that generated code. Since I use TypeScript for frontend development, I faced a problem here: How to create a global scoped function?

Post has attachment
Wait while more posts are being loaded