-
-
Save diverted247/4276598 to your computer and use it in GitHub Desktop.
TypeScript - Modules: Module syntax results in JS Closure with private properties. compile:
tsc --module AMD M.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module M { | |
var s = "hello"; | |
export function f() { | |
return s; | |
} | |
} |
Author
diverted247
commented
Dec 13, 2012
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment