lsync API
Preparing search index...
@lsync/client
collectionOptions
Function collectionOptions
collectionOptions
<
TSchema
extends
StandardSchemaV1
<
unknown
,
unknown
>
,
TKey
extends
string
|
number
=
string
|
number
,
>
(
options
:
CollectionOptions
<
InferSchemaOutput
<
TSchema
>
,
TKey
,
TSchema
>
&
{
schema
:
TSchema
;
}
,
)
:
CollectionConfig
<
InferSchemaOutput
<
TSchema
>
,
TKey
,
TSchema
,
UtilsRecord
>
&
{
schema
:
TSchema
;
}
Type Parameters
TSchema
extends
StandardSchemaV1
<
unknown
,
unknown
>
TKey
extends
string
|
number
=
string
|
number
Parameters
options
:
CollectionOptions
<
InferSchemaOutput
<
TSchema
>
,
TKey
,
TSchema
>
&
{
schema
:
TSchema
;
}
Returns
CollectionConfig
<
InferSchemaOutput
<
TSchema
>
,
TKey
,
TSchema
,
UtilsRecord
>
&
{
schema
:
TSchema
;
}
collectionOptions
<
T
extends
object
,
TKey
extends
string
|
number
=
string
|
number
,
>
(
options
:
CollectionOptions
<
T
,
TKey
,
never
>
&
{
schema
?:
undefined
}
,
)
:
CollectionConfig
<
T
,
TKey
,
never
,
UtilsRecord
>
&
{
schema
?:
undefined
}
Type Parameters
T
extends
object
TKey
extends
string
|
number
=
string
|
number
Parameters
options
:
CollectionOptions
<
T
,
TKey
,
never
>
&
{
schema
?:
undefined
}
Returns
CollectionConfig
<
T
,
TKey
,
never
,
UtilsRecord
>
&
{
schema
?:
undefined
}
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
lsync API
Loading...