Skip to content

Instantly share code, notes, and snippets.

@laszlopandy
Created March 14, 2017 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laszlopandy/fbc8c90c1748ce2f0a2d48faedf4f47c to your computer and use it in GitHub Desktop.
Save laszlopandy/fbc8c90c1748ce2f0a2d48faedf4f47c to your computer and use it in GitHub Desktop.
TypeScript examples
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