Created
April 4, 2016 02:30
-
-
Save fay-jai/b89f0f5d2d93c0ec5e3a540fbf6ca03a to your computer and use it in GitHub Desktop.
Exploring Typescript Internal and External Modules
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
namespace InternalModule { | |
export function add(...args: number[]): number { | |
return args.reduce((acc, cur) => acc + cur, 0); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment