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;
}

Properties

Properties

skip: () => MethodDecorator & ClassDecorator

This skips the belongs to validation.