(changes: Change[])
| 260 | export type ClientDBTransaction = ReturnType<typeof createTransaction>; |
| 261 | |
| 262 | export function createTransactionWithChanges(changes: Change[]) { |
| 263 | const transaction = createTransaction(); |
| 264 | |
| 265 | for (const change of changes) { |
| 266 | transaction.pushChange(change); |
| 267 | } |
| 268 | |
| 269 | return transaction; |
| 270 | } |
| 271 | |
| 272 | let currentTransaction: ClientDBTransaction | null = null; |
| 273 |
no test coverage detected