UNPKG

node-red-contrib-tak-registration

Version:

A Node-RED node to register to TAK and to help wrap files as datapackages to send to TAK

14 lines (11 loc) 458 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>;