Skip to content

Commit

Permalink
fix: make datastore batch commit option extension optional (#194)
Browse files Browse the repository at this point in the history
This should be optional
  • Loading branch information
achingbrain committed Mar 22, 2023
1 parent 9ad0ce5 commit 7bb6729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/interface-datastore/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export interface Pair {
value: Uint8Array
}

export interface Batch<BatchOptionsExtension> {
export interface Batch<BatchOptionsExtension = {}> {
put: (key: Key, value: Uint8Array) => void
delete: (key: Key) => void
commit: (options?: AbortOptions & BatchOptionsExtension) => Await<void>
Expand Down

0 comments on commit 7bb6729

Please sign in to comment.