UNPKG

@1hive/connect-core

Version:

Access and interact with Aragon Organizations and their apps.

14 lines 632 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.subscription = void 0; // This is used by methods allowing subscription. It allows to a create a // function that either subscribes directly and return a handler if a callback // is present, or to return a function allowing to pass the callback afterwards // (in other terms, a partial application). function subscription(callback, createSubscription) { return callback ? createSubscription(callback) : (callback) => createSubscription(callback); } exports.subscription = subscription; //# sourceMappingURL=subscriptions.js.map