DB Docs
API Reference
- Core API Reference
- Collection
- createCollection
- liveQueryCollectionOptions
- createLiveQueryCollection
- createOptimisticAction
- createTransaction
- Electric DB Collection
- electricCollectionOptions
- Query DB Collection
- queryCollectionOptions
- RxDB DB Collection
- rxdbCollectionOptions
- PowerSync Collection
- powerSyncCollectionOptions
- createIndexedDB
- indexedDBCollectionOptions
- React Hooks
- useLiveQuery
AI/LLM: This documentation page is available in plain markdown format at/db/latest/docs/reference/type-aliases/ResolveTransactionChanges.md
ResolveTransactionChanges
ts
type ResolveTransactionChanges<T, TOperation> = TOperation extends "delete" ? T : Partial<T>;Defined in: packages/db/src/types.ts:88
Type Parameters#
T#
T extends object = Record<string, unknown>
TOperation#
TOperation extends OperationType = OperationType
Remarks#
update and insert are both represented as Partial<T>, but changes for insert could me made more precise by inferring the schema input type. In practice, this has almost 0 real world impact so it's not worth the added type complexity.
See#
https://github.com/TanStack/db/pull/209#issuecomment-3053001206