Merge pull request #579 from lukeboyett/fix/db-transaction-type

fix(db): declare transaction() on local Database interface
This commit is contained in:
Tobias Lütke 2026-05-02 20:16:33 -04:00 committed by GitHub
commit d58fedf4b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -69,6 +69,7 @@ export interface Database {
exec(sql: string): void;
prepare(sql: string): Statement;
loadExtension(path: string): void;
transaction<T extends (...args: any[]) => any>(fn: T): T;
close(): void;
}