signal-desktop/js/modules/deferred_to_promise.js
2018-04-02 12:17:36 -04:00

3 lines
151 B
JavaScript

exports.deferredToPromise = deferred =>
// eslint-disable-next-line more/no-then
new Promise((resolve, reject) => deferred.then(resolve, reject));