You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
445 B
14 lines
445 B
export = asPromise;
|
|
|
|
type asPromiseCallback = (error: Error | null, ...params: any[]) => {};
|
|
|
|
/**
|
|
* Returns a promise from a node-style callback function.
|
|
* @memberof util
|
|
* @param {asPromiseCallback} fn Function to call
|
|
* @param {*} ctx Function context
|
|
* @param {...*} params Function arguments
|
|
* @returns {Promise<*>} Promisified function
|
|
*/
|
|
declare function asPromise(fn: asPromiseCallback, ctx: any, ...params: any[]): Promise<any>;
|