setup-node/node_modules/p-defer/index.js
Danny McCormick c3f0a8be66 Use husky
2019-06-05 11:34:47 -04:00

12 lines
177 B
JavaScript

'use strict';
module.exports = () => {
const ret = {};
ret.promise = new Promise((resolve, reject) => {
ret.resolve = resolve;
ret.reject = reject;
});
return ret;
};