oneToOne<
TTarget
,TOwner
>(entity
,options
?):OneToOneProperty
<TTarget
,TOwner
>
• TTarget extends object
• TOwner
• entity: string
| () => EntityName
<TTarget
>
• options?: Omit
<OneToOneOptions
<TOwner
, TTarget
>, "nullable"
> & object
OneToOneProperty
<TTarget
, TOwner
>
packages/mikro-orm/src/entity-schema.ts:421
oneToOne<
TTarget
,TOwner
>(entity
,options
?):OneToOneProperty
<TTarget
,TOwner
> &WithNullable
• TTarget extends object
• TOwner
• entity: string
| () => EntityName
<TTarget
>
• options?: Omit
<OneToOneOptions
<TOwner
, TTarget
>, "nullable"
> & object
OneToOneProperty
<TTarget
, TOwner
> & WithNullable
packages/mikro-orm/src/entity-schema.ts:427