-
-
Save laszlopandy/fbc8c90c1748ce2f0a2d48faedf4f47c to your computer and use it in GitHub Desktop.
TypeScript examples
This file contains hidden or 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 prezi.a { | |
import Test = prezi.a.Test; | |
export function printNumber() { | |
console.log(Test.getNumber()); | |
} | |
} | |
module prezi.a { | |
export module Test { | |
export function getNumber(): number { | |
return 42; | |
} | |
} | |
} | |
prezi.a.printNumber(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment