"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const pShare = require("promise-share");
function safeDeferredPromise() {
    let resolve;
    let reject;
    const promiseFn = pShare(new Promise((_resolve, _reject) => {
        resolve = _resolve;
        reject = _reject;
    }));
    return Object.assign(promiseFn, { resolve, reject });
}
exports.default = safeDeferredPromise;
//# sourceMappingURL=safeDeferredPromise.js.map