UNPKG

kubo-rpc-client-esm-cjs

Version:
15 lines 410 B
/* eslint-env browser */ import { Client } from './core.js'; /** * Set default configuration and call create function with them * * @template T * @param {import('../types').ConfigureFn<T>} fn * @returns {import('../types').ConfigureFactory<T>} */ export const configure = (fn) => { return (options) => { return fn(new Client(options), options); }; }; //# sourceMappingURL=configure.js.map