Methods
createContext
-
Parameters
-
args: unknown[]
-
-
callback: (...args: unknown[]) => unknown
-
- (...args: unknown[]): unknown
-
Parameters
Returns unknown
pickResult
- pickResult(result: boolean | Promise<boolean> | Observable<boolean>): Promise<boolean>
-
Parameters
-
result: boolean | Promise<boolean> | Observable<boolean>
Returns 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[]
-
-
callback: (...args: unknown[]) => unknown
-
- (...args: unknown[]): unknown
-
Parameters
Returns unknown
-
Optional type: TContext
Returns Promise<boolean>