UNPKG

ipfs-unixfs-importer

Version:

JavaScript implementation of the UnixFs importer used by IPFS

18 lines 665 B
/** * @packageDocumentation * * Layout functions allow customising the shape of final DAGs * * {@link https://dag.ipfs.tech} can be used to explore different conigurations. */ import type { InProgressImportResult } from '../index.js'; export interface Reducer { (leaves: InProgressImportResult[]): Promise<InProgressImportResult>; } export interface FileLayout { (source: AsyncIterable<InProgressImportResult> | Iterable<InProgressImportResult>, reducer: Reducer): Promise<InProgressImportResult>; } export { balanced } from './balanced.js'; export { flat } from './flat.js'; export { trickle } from './trickle.js'; //# sourceMappingURL=index.d.ts.map