本页还没有译文
本页 69 段还没译成Deutsch,下面显示的是英文原文。collectionOptions
还没翻译译自英文(tanstack.com)本页 69 段都还没译
Call Signature
function collectionOptions<T, TKey, TUtils>(options): CollectionOptions<InferSchemaOutput<T>, TKey, T, TUtils> & NonSingleResult;Defined in: packages/db/src/client.ts:182
Type Parameters
T
T extends StandardSchemaV1<unknown, unknown>
TKey
TKey extends string | number
TUtils
TUtils extends UtilsRecord
Parameters
options
CollectionConfig<InferSchemaOutput<T>, TKey, T, TUtils> & object & NonSingleResult
Returns
CollectionOptions<InferSchemaOutput<T>, TKey, T, TUtils> & NonSingleResult
Call Signature
function collectionOptions<T, TKey, TUtils>(options): CollectionOptions<InferSchemaOutput<T>, TKey, T, TUtils> & SingleResult;Defined in: packages/db/src/client.ts:191
Type Parameters
T
T extends StandardSchemaV1<unknown, unknown>
TKey
TKey extends string | number
TUtils
TUtils extends UtilsRecord
Parameters
options
CollectionConfig<InferSchemaOutput<T>, TKey, T, TUtils> & object & SingleResult
Returns
CollectionOptions<InferSchemaOutput<T>, TKey, T, TUtils> & SingleResult
Call Signature
function collectionOptions<T, TKey, TUtils>(options): CollectionOptions<T, TKey, never, TUtils> & NonSingleResult;Defined in: packages/db/src/client.ts:200
Type Parameters
T
T extends object
TKey
TKey extends string | number = string | number
TUtils
TUtils extends UtilsRecord = UtilsRecord
Parameters
options
CollectionConfig<T, TKey, never, TUtils> & object & NonSingleResult
Returns
CollectionOptions<T, TKey, never, TUtils> & NonSingleResult
Call Signature
function collectionOptions<T, TKey, TUtils>(options): CollectionOptions<T, TKey, never, TUtils> & SingleResult;Defined in: packages/db/src/client.ts:209
Type Parameters
T
T extends object
TKey
TKey extends string | number = string | number
TUtils
TUtils extends UtilsRecord = UtilsRecord
Parameters
options
CollectionConfig<T, TKey, never, TUtils> & object & SingleResult
Returns
CollectionOptions<T, TKey, never, TUtils> & SingleResult
Call Signature
function collectionOptions<TConfig>(id, factory): DescriptorFromConfig<TConfig>;Defined in: packages/db/src/client.ts:218
Type Parameters
TConfig
TConfig extends AnyCollectionConfig
Parameters
id
string
factory
(client) => TConfig
Returns
DescriptorFromConfig<TConfig>