We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84df168 commit 69b371dCopy full SHA for 69b371d
lib/transaction.d.ts
@@ -21,6 +21,13 @@ export class Transaction {
21
*/
22
public rollback(): Promise<void>
23
24
+ /**
25
+ * A hook that is run after a transaction is committed
26
+ *
27
+ * @param fn A callback function that is called with the committed transaction
28
+ */
29
+ public afterCommit(fn: () => Promise<void> | void): void
30
+
31
/**
32
* Possible options for row locking. Used in conjunction with `find` calls:
33
*
0 commit comments