UNPKG

ipfs-core

Version:

JavaScript implementation of the IPFS specification

18 lines 968 B
/** * @typedef {import('multiformats/cid').CID} CID * @typedef {import('ipfs-repo').IPFSRepo} IPFSRepo * @typedef {import('ipfs-core-types/src/utils').AbortOptions} AbortOptions * @typedef {import('ipfs-core-types/src/dag/').ImportRootStatus} RootStatus */ /** * @param {object} config * @param {IPFSRepo} config.repo */ export function createImport({ repo }: { repo: IPFSRepo; }): (sources: AsyncIterable<Uint8Array> | Iterable<Uint8Array> | AsyncIterable<AsyncIterable<Uint8Array>> | Iterable<AsyncIterable<Uint8Array>>, options?: import("ipfs-core-types/src/dag/").ImportOptions | undefined) => AsyncIterable<import("ipfs-core-types/src/dag/").ImportResult>; export type CID = import('multiformats/cid').CID; export type IPFSRepo = import('ipfs-repo').IPFSRepo; export type AbortOptions = import('ipfs-core-types/src/utils').AbortOptions; export type RootStatus = import('ipfs-core-types/src/dag/').ImportRootStatus; //# sourceMappingURL=import.d.ts.map