t×tecexpressby TeKOcloud
DEv0.7.1
API & types / VUE

TxPush.

Insert, update or remove operation for push. Multiple operations run sequentially without a transaction.

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)