Snippets of the day – Wednesday, December 11, 2013

Posted on Posted in Snippets


Here are some of the most recently published snippets!

fixes scope of functions returned by require

can not be put in a module. must execute in context of the calling module.

Open the snippet

Author:    Dshusterman

Create and use of ‘Module’ in TypeScript

A module in TypeScript is just a syntactic construct to manage namespaces in your application.

Classes defined inside a module need to have the ‘export’ keyword prefix in order to ensure their visibility outside the module.

Open the snippet

Author:    micurs

Leave a Reply

Your email address will not be published. Required fields are marked *