本页还没有译文
本页 47 段还没译成한국어,下面显示的是英文原文。CollectionLike
还没翻译译自英文(tanstack.com)本页 47 段都还没译
Defined in: packages/db/src/types.ts:15
Interface for a collection-like object that provides the necessary methods for the change events system to work
Extends
Pick<Collection<T,TKey>,"get"|"has"|"entries"|"indexes"|"id"|"compareOptions">
Type Parameters
T
T extends object = Record<string, unknown>
TKey
TKey extends string | number = string | number
Properties
compareOptions
compareOptions: StringCollationConfig;Defined in: packages/db/src/collection/index.ts:884
Inherited from
id
id: string;Defined in: packages/db/src/collection/index.ts:387
Inherited from
indexes
indexes: Map<number, BaseIndex<TKey>>;Defined in: packages/db/src/collection/index.ts:869
Inherited from
Pick.indexesMethods
entries()
entries(): IterableIterator<[TKey, WithVirtualProps<T, TKey>]>;Defined in: packages/db/src/collection/index.ts:760
Get all entries (virtual derived state)
Returns
IterableIterator<[TKey, WithVirtualProps<T, TKey>]>
Inherited from
Pick.entriesget()
get(key):
| WithVirtualProps<T, TKey>
| undefined;Defined in: packages/db/src/collection/index.ts:720
Get the current value for a key (virtual derived state)
Parameters
key
TKey
Returns
| WithVirtualProps<T, TKey>
| undefined
Inherited from
Pick.gethas()
has(key): boolean;Defined in: packages/db/src/collection/index.ts:727
Check if a key exists in the collection (virtual derived state)
Parameters
key
TKey
Returns
boolean
Inherited from
Pick.has