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
Regenerated from the corrected emitter:
- Undocumented async returns are now Promise<any> instead of a fabricated
Promise<void>, which wrongly asserted the method returns no value.
- Internal helper classes are emitted as non-exported `declare class`, since
the package only exports its main class.
- README-documented members that belong to a returned sub-object (the apply
host, a server/socket, a message, an extension, a codec) are no longer
misattributed as methods of the main class.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* Set the encryption, which should satisfy the [HypercoreEncryption](https://github.com/holepunchto/hypercore-encryption) interface.
347
347
*/
348
-
setEncryption(encryption: any): Promise<void>
348
+
setEncryption(encryption: any): Promise<any>
349
349
350
350
/**
351
351
* Set the group `topic` that the hypercore belongs to. Useful for grouping hypercores together that need to update a larger data structure (eg. `autobee`) that is comprised of them. See `corestore`'s `store.notifyGroup(topic)` for more details.
352
352
* @param topic - `topic` is a 32 byte buffer.
353
353
*/
354
-
setGroup(topic: any): Promise<void>
354
+
setGroup(topic: any): Promise<any>
355
355
356
356
/**
357
357
* Update the core's `keyPair`. Advanced as the `keyPair` is used throughout Hypercore, e.g. verifying blocks, identifying the core, etc.
* @returns Returns `[index, relativeOffset]`, where `index` is the data block the `byteOffset` is contained in and `relativeOffset` is the relative byte offset in the data block.
* Manually mark a block or range of blocks to be retained when sweeping. Useful to mark blocks without loading them into memory. `end` is non-inclusive and defaults to `start + 1` so `core.markBlock(index)` only marks the block at `index`.
517
517
* @param end - `end` is non-inclusive and defaults to
518
518
*/
519
-
markBlock(start: any,end?: any): Promise<void>
519
+
markBlock(start: any,end?: any): Promise<any>
520
520
521
521
/**
522
522
* Manually remove all markings. Automatically called when calling `core.startMarking()`.
523
523
*/
524
-
clearMarkings(): Promise<void>
524
+
clearMarkings(): Promise<any>
525
525
526
526
/**
527
527
* This enables marking mode for the "mark & sweep" approach to clear hypercore storage. When called the current markings are cleared.
0 commit comments