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

ChangeMessage.md

68 lines1.2 KB

1---
2id: ChangeMessage
3title: ChangeMessage
4---
5​
6# Interface: ChangeMessage\<T, TKey\>
7​
8Defined in: [packages/db/src/types.ts:381](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L381)
9​
10## Type Parameters
11​
12### T
13​
14`T` *extends* `object` = `Record`\<`string`, `unknown`\>
15​
16### TKey
17​
18`TKey` *extends* `string` \| `number` = `string` \| `number`
19​
20## Properties
21​
22### key
23​
24```ts
25key: TKey;
26```
27​
28Defined in: [packages/db/src/types.ts:385](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L385)
29​
30***
31​
32### metadata?
33​
34```ts
35optional metadata: Record<string, unknown>;
36```
37​
38Defined in: [packages/db/src/types.ts:389](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L389)
39​
40***
41​
42### previousValue?
43​
44```ts
45optional previousValue: T;
46```
47​
48Defined in: [packages/db/src/types.ts:387](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L387)
49​
50***
51​
52### type
53​
54```ts
55type: OperationType;
56```
57​
58Defined in: [packages/db/src/types.ts:388](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L388)
59​
60***
61​
62### value
63​
64```ts
65value: T;
66```
67​
68Defined in: [packages/db/src/types.ts:386](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L386)