Created
September 29, 2015 16:31
-
-
Save dallonf/db114c4d76cc3c8eb68d to your computer and use it in GitHub Desktop.
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
declare module 'co' { | |
interface ICoStatic { | |
<T>(coroutine: () => IterableIterator<any>): Promise<T> | |
wrap<T>(coroutine: (...args: any[]) => IterableIterator<Promise<any>>): (...args: any[]) => Promise<T> | |
} | |
var co: ICoStatic; | |
export default co; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment