本页还没有译文
本页 9 段还没译成Español,下面显示的是英文原文。isCollection
还没翻译译自英文(tanstack.com)本页 9 段都还没译
function isCollection(value): value is Collection<any, any, any, StandardSchemaV1<unknown, unknown>, any>;Defined in: packages/db/src/live-query-adapter.ts:22
Structural check for a live-query/Collection instance.
Uses duck typing rather than instanceof CollectionImpl on purpose: adapters
and core can resolve to different copies of @tanstack/db (dual-package /
multi-realm), where instanceof gives false negatives. The three methods
below uniquely identify a Collection.
Parameters
value
unknown
Returns
value is Collection<any, any, any, StandardSchemaV1<unknown, unknown>, any>
AI 翻译查看英文原文