Created
November 21, 2016 18:53
-
-
Save amir-arad/821de4ba949a389801dbb8560521e066 to your computer and use it in GitHub Desktop.
an addition to the bluebird descriptors
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
import * as Bluebird from "@types/bluebird"; | |
declare module "bluebird" { | |
/** | |
* Returns a promise that is resolved by a node style callback function. | |
*/ | |
export function fromNode<T>(resolver: (callback: (err: any, result?: Bluebird<T>) => void) => void, options?: Bluebird.FromNodeOptions): Bluebird<T>; | |
export function fromCallback<T>(resolver: (callback: (err: any, result?: Bluebird<T>) => void) => void, options?: Bluebird.FromNodeOptions): Bluebird<T>; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment