Insert, update or remove operation for push. Multiple operations run sequentially without a transaction.
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)