t×tecexpressby TeKOcloud
ENv0.7.1
API & Datentypen / VUE

TxPush.

Einfüge-, Änderungs- oder Löschoperation für push. Mehrere Operationen laufen nacheinander, ohne Transaktion.

ts
type TxPush<T> =
  | { type: 'insert'; data: T }
  | { type: 'update'; key: TxKey; data: Partial<T> }
  | { type: 'remove'; key: TxKey }
ts
import type { TxPush } from '@tekocloud.de/tecexpress'
const example: TxPush<{ id: number }> = { type: 'insert', data: { id: 1 } }
console.log(example)