kubo-rpc-client-esm-cjs
Version:
A client library for the Kubo RPC API
19 lines • 553 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.configure = void 0;
/* eslint-env browser */
const core_js_1 = require("./core.js");
/**
* Set default configuration and call create function with them
*
* @template T
* @param {import('../types').ConfigureFn<T>} fn
* @returns {import('../types').ConfigureFactory<T>}
*/
const configure = (fn) => {
return (options) => {
return fn(new core_js_1.Client(options), options);
};
};
exports.configure = configure;
//# sourceMappingURL=configure.js.map