MCPcopy Create free account
hub / github.com/TanStack/db / omitVirtualProps

Function omitVirtualProps

packages/db/tests/utils.ts:31–42  ·  view source on GitHub ↗
(
  value: T,
)

Source from the content-addressed store, hash-verified

29}
30
31export const omitVirtualProps = <T extends Record<string, any>>(
32 value: T,
33): Omit<T, '$synced' | '$origin' | '$key' | '$collectionId'> => {
34 const {
35 $synced: _synced,
36 $origin: _origin,
37 $key: _key,
38 $collectionId: _collectionId,
39 ...rest
40 } = value as Record<string, unknown>
41 return rest as any
42}
43
44// Index usage tracking utilities
45export interface IndexUsageStats {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected