kubo-rpc-client-esm-cjs
Version:
A client library for the Kubo RPC API
20 lines • 579 B
JavaScript
import { toUrlSearchParams } from '../../../lib/to-url-search-params.js';
/**
* @param {import('../../../lib/core').Client} client
*/
export function createRm(client) {
/**
* @type {import('../../../types').RemotePiningServiceAPI["rm"]}
*/
async function rm(name, options = {}) {
await client.post('pin/remote/service/rm', {
signal: options.signal,
headers: options.headers,
searchParams: toUrlSearchParams({
arg: name
})
});
}
return rm;
}
//# sourceMappingURL=rm.js.map