Skip to content

Commit dd812a6

Browse files
committed
fix(blockstore): use simpler block interface in type
do not use concrete type for block in the interface definition
1 parent d0ad9a4 commit dd812a6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/types.d.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import type { BigNumber } from 'bignumber.js'
33

44
import type CID from 'cids'
55

6-
import type Block from 'ipld-block'
7-
86
export type AwaitIterable<T> = Iterable<T> | AsyncIterable<T>
97
export type Await<T> = Promise<T> | T
108

@@ -61,6 +59,11 @@ export interface Stat {
6159
repoSize: BigNumber
6260
}
6361

62+
export interface Block {
63+
cid: CID
64+
data: Uint8Array
65+
}
66+
6467
export interface Blockstore {
6568
open: () => Promise<Void>
6669
/**

0 commit comments

Comments
 (0)