Skip to content

Instantly share code, notes, and snippets.

@danielearwicker
Last active August 29, 2015 14:16
Show Gist options
  • Save danielearwicker/b0637d010277996e9bd0 to your computer and use it in GitHub Desktop.
Save danielearwicker/b0637d010277996e9bd0 to your computer and use it in GitHub Desktop.
TypeScript module merging
Test.foo(v => v > 5);
declare module Test {
function foo(arg: any): void;
}
declare module Test {
function foo(predicate: (val: number) => boolean): void;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment