Open History to see the last commit
1---
2id: ChangeMessage
3title: ChangeMessage
4---
5
6Defined in: [packages/db/src/types.ts:556](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L556)
7
8## Type Parameters
9
10### T
11
12`T` *extends* `object` = `Record`\<`string`, `unknown`\>
13
14### TKey
15
16`TKey` *extends* `string` \| `number` = `string` \| `number`
17
18## Properties
19
20### key
21
22```ts
23key: TKey;
24```
25
26Defined in: [packages/db/src/types.ts:560](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L560)
27
28***
29
30### metadata?
31
32```ts
33optional metadata: Record<string, unknown>;
34```
35
36Defined in: [packages/db/src/types.ts:564](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L564)
37
38***
39
40### previousValue?
41
42```ts
43optional previousValue: T;
44```
45
46Defined in: [packages/db/src/types.ts:562](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L562)
47
48***
49
50### type
51
52```ts
53type: OperationType;
54```
55
56Defined in: [packages/db/src/types.ts:563](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L563)
57
58***
59
60### value
61
62```ts
63value: T;
64```
65
66Defined in: [packages/db/src/types.ts:561](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L561)