Skip to content

Instantly share code, notes, and snippets.

@dallonf
Created September 29, 2015 16:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dallonf/db114c4d76cc3c8eb68d to your computer and use it in GitHub Desktop.
Save dallonf/db114c4d76cc3c8eb68d to your computer and use it in GitHub Desktop.
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