Primary
Primary<T
>: T
extends { [PrimaryKeyType]?
: infer PK } ? ReadonlyPrimary
<PK
> : T
extends { _id?
: infer PK } ? ReadonlyPrimary
<PK
> | string
: T
extends { uuid?
: infer PK } ? ReadonlyPrimary
<PK
> : T
extends { id?
: infer PK } ? ReadonlyPrimary
<PK
> : never
Type parameters
T
objectRequiredWas this section helpful?