Skip to content

Commit d58fedf

Browse files
authored
Merge pull request tobi#579 from lukeboyett/fix/db-transaction-type
fix(db): declare transaction() on local Database interface
2 parents 06218b1 + d231b64 commit d58fedf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/db.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export interface Database {
6969
exec(sql: string): void;
7070
prepare(sql: string): Statement;
7171
loadExtension(path: string): void;
72+
transaction<T extends (...args: any[]) => any>(fn: T): T;
7273
close(): void;
7374
}
7475

0 commit comments

Comments
 (0)