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

hasVirtualProps.md

36 lines609 Bytes

Function: hasVirtualProps()

function hasVirtualProps(value): value is VirtualRowProps<string | number>;

Defined in: packages/db/src/virtual-props.ts:145

Checks if a value has virtual properties attached.

Parameters

value

unknown

The value to check

Returns

value is VirtualRowProps<string | number>

true if the value has virtual properties

Example

if (hasVirtualProps(row)) {
  console.log('Synced:', row.$synced)
}