Open History to see the last commit
1---
2id: hasVirtualProps
3title: hasVirtualProps
4---
5
6```ts
7function hasVirtualProps(value): value is VirtualRowProps<string | number>;
8```
9
10Defined in: [packages/db/src/virtual-props.ts:167](https://github.com/TanStack/db/blob/main/packages/db/src/virtual-props.ts#L167)
11
12Checks if a value has all virtual properties attached.
13
14## Parameters
15
16### value
17
18`unknown`
19
20The value to check
21
22## Returns
23
24value is VirtualRowProps\<string \| number\>
25
26true if the value has virtual properties
27
28## Example
29
30```typescript
31if (hasVirtualProps(row)) {
32 console.log('Pending local writes:', row.$hasPendingWrites)
33}
34```