Skip to content

Commit

Permalink
Merge pull request #100 from pedroapfilho/main
Browse files Browse the repository at this point in the history
Making `db` as optional for `Options` interface
  • Loading branch information
jcubic authored Aug 30, 2022
2 parents 9c4e818 + 76dc7ac commit b041900
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,11 @@ declare module '@isomorphic-git/lightning-fs' {
* @default false
*/
defer?: boolean
db: FS.IDB
/**
* Custom database instance
* @default null
*/
db?: FS.IDB
}
export interface IDB {
constructor(dbname: string, storename: string): IDB
Expand Down

0 comments on commit b041900

Please sign in to comment.