UNPKG

@kitstack/nest-powertools

Version:

A comprehensive collection of NestJS powertools, decorators, and utilities to supercharge your backend development

18 lines (17 loc) 687 B
import { type CanActivate, type ExecutionContext } from '@nestjs/common'; import type { CompositeGuardConfig } from '../types/hooks'; export declare class CompositeGuard implements CanActivate { private config; constructor(config: CompositeGuardConfig); canActivate(context: ExecutionContext): Promise<boolean>; private evaluateAnd; private evaluateOr; private evaluateNot; private createGuardInstance; } export declare class CompositeGuardHelper { static And(...guards: any[]): CompositeGuard; static Or(...guards: any[]): CompositeGuard; static Not(guard: any): CompositeGuard; static Custom(config: CompositeGuardConfig): CompositeGuard; }