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.
feat: type check & generate defs from jsdoc (#3281)
1. Add missing type info (via jsdoc) and fix existing one so that `tsc --noEmit` can succeed without an error.
2. Fix all the issues that `tsc` pointed out once it got enabled.
3. Add a npm script that generates typedefs & typedef maps in `dist` directory & corresponding settings in `package.json` so that when package installed from npm no config will be required to get all the typings.
Co-authored-by: Xmader <[email protected]>
Co-authored-by: Alex Potsides <[email protected]>
Co-authored-by: achingbrain <[email protected]>
Copy file name to clipboardExpand all lines: docs/core-api/FILES.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -242,8 +242,8 @@ 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 |
246
-
| cidVersion |`Number`|`0`| the CID version to use when storing the data |
245
+
| chunker |`string`|`'size-262144'`| chunking algorithm used to build ipfs DAGs |
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 |
249
249
| onlyHash |`boolean`|`false`| If true, will not add blocks to the blockstore |
@@ -415,7 +415,7 @@ An optional object which may have the following keys:
415
415
416
416
| Type | Description |
417
417
| -------- | -------- |
418
-
|`AsyncIterable<Buffer>`| An async iterable that yields [`Buffer`][b] objects with the contents of `path`|
418
+
|`AsyncIterable<Uint8Array>`| An async iterable that yields `Uint8Array` objects with the contents of `path`|
419
419
420
420
#### Example
421
421
@@ -842,7 +842,7 @@ An optional object which may have the following keys:
842
842
843
843
| Type | Description |
844
844
| -------- | -------- |
845
-
|`AsyncIterable<Buffer>`| An async iterable that yields [`Buffer`][b] objects with the contents of `path`|
845
+
|`AsyncIterable<Uint8Array>`| An async iterable that yields `Uint8Array` objects with the contents of `path`|
Copy file name to clipboardExpand all lines: docs/core-api/PUBSUB.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@
32
32
| Name | Type | Description |
33
33
| ---- | ---- | ----------- |
34
34
| topic |`String`| The topic name |
35
-
| handler |`Function<(msg) => {}>`| Event handler which will be called with a message object everytime one is received. The `msg` has the format `{from: String, seqno: Buffer, data: Buffer, topicIDs: Array<String>}`|
35
+
| handler |`Function<(msg) => {}>`| Event handler which will be called with a message object everytime one is received. The `msg` has the format `{from: String, seqno: Uint8Array, data: Uint8Array, topicIDs: Array<String>}`|
36
36
37
37
### Options
38
38
@@ -125,7 +125,7 @@ If **only** the `topic` param is provided, unsubscribe will remove **all** handl
0 commit comments