Skip to content

Commit

Permalink
Define path as optional, #243
Browse files Browse the repository at this point in the history
  • Loading branch information
kriszyp committed Jun 22, 2023
1 parent cc6b599 commit 6e4146d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ declare namespace lmdb {
/**
* Open a database store using the provided options.
**/
openDB<OV = V, OK extends Key = K>(options: DatabaseOptions & { name: string }): Database<OV, OK>
openDB<OV = V, OK extends Key = K>(options?: DatabaseOptions & { name: string }): Database<OV, OK>
/**
* Open a database store using the provided options.
**/
Expand Down Expand Up @@ -342,7 +342,7 @@ declare namespace lmdb {
maxReaders?: number
}
interface RootDatabaseOptionsWithPath extends RootDatabaseOptions {
path: string
path?: string
}
interface CompressionOptions {
threshold?: number
Expand Down

0 comments on commit 6e4146d

Please sign in to comment.