MCPcopy Index your code
hub / github.com/TanStack/db / hasVirtualProps

Function hasVirtualProps

packages/db/src/virtual-props.ts:145–153  ·  view source on GitHub ↗
(
  value: unknown,
)

Source from the content-addressed store, hash-verified

143 * ```
144 */
145export function hasVirtualProps(
146 value: unknown,
147): value is VirtualRowProps<string | number> {
148 return (
149 typeof value === 'object' &&
150 value !== null &&
151 VIRTUAL_PROP_NAMES.every((name) => name in value)
152 )
153}
154
155/**
156 * Creates virtual properties for a row in a source collection.

Calls

no outgoing calls

Tested by

no test coverage detected