Open History to see the last commit
1---
2id: ChangeMessage
3title: ChangeMessage
4---
5
6<!-- DO NOT EDIT: this page is autogenerated from the type comments -->
7
8# Interface: ChangeMessage\<T, TKey\>
9
10Defined in: [packages/db/src/types.ts:228](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L228)
11
12## Extended by
13
14- [`OptimisticChangeMessage`](../optimisticchangemessage.md)
15
16## Type Parameters
17
18• **T** *extends* `object` = `Record`\<`string`, `unknown`\>
19
20• **TKey** *extends* `string` \| `number` = `string` \| `number`
21
22## Properties
23
24### key
25
26```ts
27key: TKey;
28```
29
30Defined in: [packages/db/src/types.ts:232](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L232)
31
32***
33
34### metadata?
35
36```ts
37optional metadata: Record<string, unknown>;
38```
39
40Defined in: [packages/db/src/types.ts:236](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L236)
41
42***
43
44### previousValue?
45
46```ts
47optional previousValue: T;
48```
49
50Defined in: [packages/db/src/types.ts:234](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L234)
51
52***
53
54### type
55
56```ts
57type: OperationType;
58```
59
60Defined in: [packages/db/src/types.ts:235](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L235)
61
62***
63
64### value
65
66```ts
67value: T;
68```
69
70Defined in: [packages/db/src/types.ts:233](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L233)