You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
TypeScript support for `ipfs` and `ipfs-http-client`
Refs: #2945
Refs: #1166
Co-authored-by: Irakli Gozalishvili <contact@gozala.io>
Co-authored-by: Alex Potsides <alex@achingbrain.net>
@@ -162,7 +162,7 @@ An optional object which may have the following keys:
162
162
163
163
| Name | Type | Default | Description |
164
164
| ---- | ---- | ------- | ----------- |
165
-
| chunker |`String`|`'size-262144`| chunking algorithm used to build ipfs DAGs |
165
+
| chunker |`String`|`'size-262144'`| chunking algorithm used to build ipfs DAGs |
166
166
| cidVersion |`Number`|`0`| the CID version to use when storing the data |
167
167
| hashAlg |`String`|`'sha2-256'`| multihash hashing algorithm to use |
168
168
| onlyHash |`boolean`|`false`| If true, will not add blocks to the blockstore |
@@ -178,7 +178,7 @@ An optional object which may have the following keys:
178
178
179
179
| Type | Description |
180
180
| -------- | -------- |
181
-
|`UnixFSEntry`| A object describing the added data |
181
+
|`Promise<UnixFSEntry>`| A object describing the added data |
182
182
183
183
Each yielded object is of the form:
184
184
@@ -226,7 +226,7 @@ Now [ipfs.io/ipfs/Qm..pg/myfile.txt](https://ipfs.io/ipfs/QmWXdjNC362aPDtwHPUE9o
226
226
227
227
| Name | Type | Description |
228
228
| ---- | ---- | ----------- |
229
-
| source |[FileStream<FileContent|FileObject>](#filestream)| Data to import (see below) |
229
+
| source |[FileStream<FileContent\|FileObject>](#filestream)| Data to import (see below) |
230
230
231
231
##### FileStream
232
232
@@ -242,7 +242,7 @@ An optional object which may have the following keys:
242
242
243
243
| Name | Type | Default | Description |
244
244
| ---- | ---- | ------- | ----------- |
245
-
| chunker |`String`|`'size-262144`| chunking algorithm used to build ipfs DAGs |
245
+
| chunker |`String`|`'size-262144'`| chunking algorithm used to build ipfs DAGs |
246
246
| cidVersion |`Number`|`0`| the CID version to use when storing the data |
247
247
| enableShardingExperiment |`boolean`|`false`| allows to create directories with an unlimited number of entries currently size of unixfs directories is limited by the maximum block size. Note that this is an experimental feature |
248
248
| hashAlg |`String`|`'sha2-256'`| multihash hashing algorithm to use |
* @property {Headers | Record<string, string>} [headers] - An object or [Headers](https://developer.mozilla.org/en-US/docs/Web/API/Headers) instance that can be used to set custom HTTP headers. Note that this option can also be [configured globally](#custom-headers) via the constructor options.
19
+
* @property {URLSearchParams | Record<string, string>} [searchParams] - An object or [`URLSearchParams`](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams) instance that can be used to add additional query parameters to the query string sent with each request.
20
+
* @property {object} [ipld]
21
+
* @property {any[]} [ipld.formats] - An array of additional [IPLD formats](https://github.com/ipld/interface-ipld-format) to support
22
+
* @property {(format: string) => Promise<any>} [ipld.loadFormat] - an async function that takes the name of an [IPLD format](https://github.com/ipld/interface-ipld-format) as a string and should return the implementation of that codec
0 commit comments