Skip to content

Instantly share code, notes, and snippets.

@fay-jai
Created April 4, 2016 03:19
Show Gist options
  • Save fay-jai/15f1f9b692efe378f7a960eee947e68d to your computer and use it in GitHub Desktop.
Save fay-jai/15f1f9b692efe378f7a960eee947e68d to your computer and use it in GitHub Desktop.
Exploring Typescript Internal and External Modules
export function sayHello(name: string): string {
return `Hello, ${name}`;
}
/*
NOTE: this is the compiled JavaScript, assuming CommonJS module format
"use strict";
function sayHello(name) {
return "Hello, " + name;
}
exports.sayHello = sayHello;
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment