hasVirtualProps

Function: hasVirtualProps()

ts
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

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