refactor(router): add type guards for router guards (#26521)
PR Close #26521
This commit is contained in:

committed by
Matias Niemelä

parent
ad6771dcd4
commit
9f4299d47b
@ -374,6 +374,7 @@ export interface Resolve<T> {
|
||||
*
|
||||
* @publicApi
|
||||
*/
|
||||
export interface CanLoad {
|
||||
canLoad(route: Route, segments: UrlSegment[]): Observable<boolean>|Promise<boolean>|boolean;
|
||||
}
|
||||
export interface CanLoad { canLoad: CanLoadFn; }
|
||||
|
||||
export type CanLoadFn = (route: Route, segments: UrlSegment[]) =>
|
||||
Observable<boolean>| Promise<boolean>| boolean;
|
||||
|
Reference in New Issue
Block a user