type WithVirtualProps<T, TKey> = T & VirtualRowProps<TKey>;
Defined in: packages/db/src/virtual-props.ts:112
Adds virtual properties to a row type.
T extends object
The base row type
TKey extends string | number = string | number
The type of the row's key
type User = { id: string; name: string }
type UserWithVirtual = WithVirtualProps<User, string>
// { id: string; name: string; $synced: boolean; $origin: 'local' | 'remote'; $key: string; $collectionId: string }