zibri
Preparing search index...
auth/decorators/belongs-to.decorator
BelongsToFn
Interface BelongsToFn
The type of the belongs to decorator.
interface
BelongsToFn
{
skip
:
()
=>
MethodDecorator
&
ClassDecorator
;
<
T
extends
Newable
<
BaseEntity
>
>
(
targetEntity
:
T
,
targetIdParamKey
?:
string
,
targetUserIdKey
?:
keyof
InstanceType
<
T
>
,
allowedStrategies
?:
AuthStrategies
,
)
:
MethodDecorator
&
ClassDecorator
;
}
BelongsToFn
<
T
extends
Newable
<
BaseEntity
>
>
(
targetEntity
:
T
,
targetIdParamKey
?:
string
,
targetUserIdKey
?:
keyof
InstanceType
<
T
>
,
allowedStrategies
?:
AuthStrategies
,
)
:
MethodDecorator
&
ClassDecorator
Type Parameters
T
extends
Newable
<
BaseEntity
>
Parameters
targetEntity
:
T
Optional
targetIdParamKey
:
string
Optional
targetUserIdKey
:
keyof
InstanceType
<
T
>
Optional
allowedStrategies
:
AuthStrategies
Returns
MethodDecorator
&
ClassDecorator
Index
Properties
skip
Properties
skip
skip
:
()
=>
MethodDecorator
&
ClassDecorator
This skips the belongs to validation.
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
skip
zibri
Loading...
The type of the belongs to decorator.