Converts a function that expects a node-style callback argument like (err, result) to return a Promise instead.
(err, result)
Promise
A function that wraps fun and returns a Promise.
fun
The given function to convert from callback style to Promise.
Optional
Generated using TypeDoc
Converts a function that expects a node-style callback argument like
(err, result)to return aPromiseinstead.Returns
A function that wraps
funand returns aPromise.