Skip to content

Commit 5daabfc

Browse files
committed
Make open async
1 parent 7b28b87 commit 5daabfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ declare module "@orbitdb/core" {
157157

158158
export type OrbitDB<T extends ServiceMap = ServiceMap> = {
159159
id: string;
160-
open: (address: string, options?: OpenDatabaseOptions) => BaseDatabase;
160+
open: (address: string, options?: OpenDatabaseOptions) => Promise<BaseDatabase>;
161161
stop: () => Promise<void>;
162162
ipfs: HeliaLibp2p<Libp2p<T>>;
163163
directory: string;

0 commit comments

Comments
 (0)