index.js 177 B

1234567891011
  1. 'use strict';
  2. module.exports = () => {
  3. const ret = {};
  4. ret.promise = new Promise((resolve, reject) => {
  5. ret.resolve = resolve;
  6. ret.reject = reject;
  7. });
  8. return ret;
  9. };