Skip to content

Commit 76dc7ac

Browse files
authored
Making db as optional for Options interface
The `db` is actually optional, as if it’s not present, it’ll default to the db creation, so the type should be optional too.
1 parent 9c4e818 commit 76dc7ac

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

index.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,11 @@ declare module '@isomorphic-git/lightning-fs' {
252252
* @default false
253253
*/
254254
defer?: boolean
255-
db: FS.IDB
255+
/**
256+
* Custom database instance
257+
* @default null
258+
*/
259+
db?: FS.IDB
256260
}
257261
export interface IDB {
258262
constructor(dbname: string, storename: string): IDB

0 commit comments

Comments
 (0)