TransactionWithMutations

Type Alias: TransactionWithMutations<T, TOperation>

ts
type TransactionWithMutations<T, TOperation> = Transaction<T> & object;
type TransactionWithMutations<T, TOperation> = Transaction<T> & object;

Defined in: packages/db/src/types.ts:154

Utility type for a Transaction with at least one mutation This is used internally by the Transaction.commit method

Type declaration

mutations

ts
mutations: NonEmptyArray<PendingMutation<T, TOperation>>;
mutations: NonEmptyArray<PendingMutation<T, TOperation>>;

Type Parameters

T extends object = Record<string, unknown>

TOperation extends OperationType = OperationType

Our Partners
Electric
Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.

Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.