Skip to content

Instantly share code, notes, and snippets.

@fay-jai
Created April 4, 2016 02:30
Show Gist options
  • Save fay-jai/b89f0f5d2d93c0ec5e3a540fbf6ca03a to your computer and use it in GitHub Desktop.
Save fay-jai/b89f0f5d2d93c0ec5e3a540fbf6ca03a to your computer and use it in GitHub Desktop.
Exploring Typescript Internal and External Modules
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