Optional
onProgress
onProgress?: ((evt) => void)
Type declaration
- (evt): void
Parameters
evt: ProgressEvent<"bitswap:network:provide", CID<unknown, number, number, Version>> | BitswapNetworkProgressEvents | ProgressEvent<"blocks:put:duplicate", CID<unknown, number, number, Version>> | ProgressEvent<"blocks:put:providers:notify", CID<unknown, number, number, Version>> | ProgressEvent<"blocks:put:blockstore:put", CID<unknown, number, number, Version>> | ProgressEvent<"blocks:get:providers:want", CID<unknown, number, number, Version>> | ProgressEvent<"blocks:get:blockstore:get", CID<unknown, number, number, Version>> | ProgressEvent<"blocks:get:blockstore:put", CID<unknown, number, number, Version>> | ProgressEvent<"bitswap:want-block:unwant", CID<unknown, number, number, Version>> | ProgressEvent<"bitswap:want-block:block", CID<unknown, number, number, Version>> | ProgressEvent<"bitswap:network:send-wantlist", PeerId> | ProgressEvent<"bitswap:network:send-wantlist:error", {
error: Error;
peer: PeerId;
}> | ProgressEvent<"bitswap:network:find-providers", CID<unknown, number, number, Version>> | ProgressEvent<"unixfs:exporter:progress:unixfs:file", ExportProgress> | ProgressEvent<"unixfs:exporter:progress:unixfs:raw", ExportProgress> | ProgressEvent<"unixfs:exporter:progress:raw", ExportProgress> | ProgressEvent<"unixfs:exporter:progress:identity", ExportProgress> | ProgressEvent<"unixfs:exporter:walk:file", ExportWalk> | ProgressEvent<"unixfs:exporter:walk:directory", ExportWalk> | ProgressEvent<"unixfs:exporter:walk:hamt-sharded-directory", ExportWalk> | ProgressEvent<"unixfs:exporter:walk:raw", ExportWalk>
Returns void
Options to pass to the chmod command