Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

transactionconfig.md

58 lines1.1 KB

1---
2id: TransactionConfig
3title: TransactionConfig
4---
5​
6<!-- DO NOT EDIT: this page is autogenerated from the type comments -->
7​
8# Interface: TransactionConfig\<T\>
9​
10Defined in: [packages/db/src/types.ts:161](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L161)
11​
12## Type Parameters
13​
14• **T** *extends* `object` = `Record`\<`string`, `unknown`\>
15​
16## Properties
17​
18### autoCommit?
19​
20```ts
21optional autoCommit: boolean;
22```
23​
24Defined in: [packages/db/src/types.ts:165](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L165)
25​
26***
27​
28### id?
29​
30```ts
31optional id: string;
32```
33​
34Defined in: [packages/db/src/types.ts:163](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L163)
35​
36Unique identifier for the transaction
37​
38***
39​
40### metadata?
41​
42```ts
43optional metadata: Record<string, unknown>;
44```
45​
46Defined in: [packages/db/src/types.ts:168](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L168)
47​
48Custom metadata to associate with the transaction
49​
50***
51​
52### mutationFn
53​
54```ts
55mutationFn: MutationFn<T>;
56```
57​
58Defined in: [packages/db/src/types.ts:166](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L166)