Last active
August 29, 2015 14:16
-
-
Save danielearwicker/b0637d010277996e9bd0 to your computer and use it in GitHub Desktop.
TypeScript module merging
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
Test.foo(v => v > 5); |
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
declare module Test { | |
function foo(arg: any): void; | |
} |
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
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