import { CustomDecorator , SetMetadata } from '@nestjs/common' ; export const NeedRoles = ( ... roles ) : CustomDecorator => SetMetadata ( 'roles' , roles ) ; export const NeedPolicies = ( ... policies ) : CustomDecorator => SetMetadata ( 'policies' , policies ) ;