signal-desktop/js/modules/deferred_to_promise.js

4 lines
151 B
JavaScript
Raw Normal View History

2018-03-26 19:30:51 +00:00
exports.deferredToPromise = deferred =>
// eslint-disable-next-line more/no-then
new Promise((resolve, reject) => deferred.then(resolve, reject));