Einfüge-, Änderungs- oder Löschoperation für push. Mehrere Operationen laufen nacheinander, ohne Transaktion.
type TxPush<T> =
| { type: 'insert'; data: T }
| { type: 'update'; key: TxKey; data: Partial<T> }
| { type: 'remove'; key: TxKey }import type { TxPush } from '@tekocloud.de/tecexpress'
const example: TxPush<{ id: number }> = { type: 'insert', data: { id: 1 } }
console.log(example)