Commit 519d91c
committed
docs: add JSDoc explaining why BillingTransactionFn uses any
The callback parameter must use `any` because the real Drizzle transaction
type (PgTransaction) has many additional properties (schema, rollback, etc.)
that our minimal BillingDbConnection does not include. Using `any` allows
both the real transaction and mock implementations to work together.1 parent d9e9634 commit 519d91c
1 file changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
217 | 231 | | |
218 | 232 | | |
| 233 | + | |
219 | 234 | | |
220 | 235 | | |
221 | 236 | | |
| |||
0 commit comments