Skip to content

Commit f6d80e7

Browse files
committed
fix: transaction type
1 parent 3f361f7 commit f6d80e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

package/src/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ export interface NitroSQLiteConnection {
88
delete(): void
99
attach(dbNameToAttach: string, alias: string, location?: string): void
1010
detach(alias: string): void
11-
transaction<Result = void>(
12-
fn: (tx: Transaction) => Promise<Result>,
13-
): Promise<Result>
11+
transaction: <Result = void>(
12+
transactionCallback: (tx: Transaction) => Promise<Result>,
13+
) => Promise<Result>
1414
execute: ExecuteQuery
1515
executeAsync: ExecuteAsyncQuery
1616
executeBatch(commands: BatchQueryCommand[]): BatchQueryResult

0 commit comments

Comments
 (0)