Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GuardsConsumer

Hierarchy

  • GuardsConsumer

Index

Methods

createContext

pickResult

  • pickResult(result: boolean | Promise<boolean> | Observable<boolean>): Promise<boolean>

tryActivate

  • tryActivate<TContext>(guards: CanActivate[], args: unknown[], instance: Controller, callback: (...args: unknown[]) => unknown, type?: TContext): Promise<boolean>
  • Type parameters

    • TContext: string = ContextType

    Parameters

    • guards: CanActivate[]
    • args: unknown[]
    • instance: Controller
    • callback: (...args: unknown[]) => unknown
        • (...args: unknown[]): unknown
        • Parameters

          • Rest ...args: unknown[]

          Returns unknown

    • Optional type: TContext

    Returns Promise<boolean>

Generated using TypeDoc