Skip to content

Commit

Permalink
fix: adjust return type of clear method (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
achou11 committed Jul 19, 2023
1 parent f7b4dbe commit 84a2cde
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions vendor/hypercore.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,8 @@ declare class Hypercore<
byteLength: number
prefetch: number
}): Readable
clear(start: number, options?: { diff: boolean }): Promise<boolean>
clear(
start: number,
end: number,
options?: { diff: boolean }
): Promise<boolean>
clear(start: number, end?: number, opts?: { diff?: boolean }): Promise<{ blocks: number } | null>
clear(start: number, opts?: { diff?: boolean }): Promise<{ blocks: number } | null>
truncate(newLength: number, forkId?: number): Promise<void>
purge(): Promise<void>
treeHash(length?: number): Promise<Buffer>
Expand Down

0 comments on commit 84a2cde

Please sign in to comment.