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

currentstateaschangesoptions.md

50 lines1021 Bytes

1---
2id: CurrentStateAsChangesOptions
3title: CurrentStateAsChangesOptions
4---
5​
6<!-- DO NOT EDIT: this page is autogenerated from the type comments -->
7​
8# Interface: CurrentStateAsChangesOptions\<T\>
9​
10Defined in: [packages/db/src/types.ts:587](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L587)
11​
12Options for getting current state as changes
13​
14## Type Parameters
15​
16• **T** *extends* `object` = `Record`\<`string`, `unknown`\>
17​
18## Properties
19​
20### where()?
21​
22```ts
23optional where: (row) => any;
24```
25​
26Defined in: [packages/db/src/types.ts:591](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L591)
27​
28Filter the current state using a where expression
29​
30#### Parameters
31​
32##### row
33​
34`SingleRowRefProxy`\<`T`\>
35​
36#### Returns
37​
38`any`
39​
40***
41​
42### whereExpression?
43​
44```ts
45optional whereExpression: BasicExpression<boolean>;
46```
47​
48Defined in: [packages/db/src/types.ts:593](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L593)
49​
50Pre-compiled expression for filtering the current state