The type of the has role decorator.

interface HasRoleFn {
    skip: () => MethodDecorator & ClassDecorator;
    (
        allowedRoles: string[],
        allowedStrategies?: AuthStrategies,
    ): MethodDecorator & ClassDecorator;
}

Properties

Properties

skip: () => MethodDecorator & ClassDecorator

This skips the has role validation.