Created
April 4, 2016 03:19
-
-
Save fay-jai/15f1f9b692efe378f7a960eee947e68d to your computer and use it in GitHub Desktop.
Exploring Typescript Internal and External Modules
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
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