本页还没有译文
本页 11 段还没译成Español,下面显示的是英文原文。WithVirtualProps
还没翻译译自英文(tanstack.com)本页 11 段都还没译
type WithVirtualProps<T, TKey> = T & PublishedVirtualRowProps<TKey>;Defined in: packages/db/src/virtual-props.ts:157
Adds virtual properties to a row type.
Type Parameters
T
T extends object
The base row type
TKey
TKey extends string | number = string | number
The type of the row's key
Example
type User = { id: string; name: string }
type UserWithVirtual = WithVirtualProps<User, string>
// { id: string; name: string; $hasPendingWrites: boolean; $synced: boolean; $origin: 'local' | 'remote'; $key: string; $collectionId: string }
// $synced is deprecated; use !$hasPendingWrites instead.AI 翻译查看英文原文