(urlSerializer: UrlSerializer)
| 252 | } |
| 253 | |
| 254 | function redirectIfUrlTree(urlSerializer: UrlSerializer): OperatorFunction<GuardResult, boolean> { |
| 255 | return pipe( |
| 256 | tap((result: GuardResult) => { |
| 257 | if (typeof result === 'boolean') return; |
| 258 | |
| 259 | throw redirectingNavigationError(urlSerializer, result); |
| 260 | }), |
| 261 | map((result) => result === true), |
| 262 | ); |
| 263 | } |
| 264 | |
| 265 | export function runCanMatchGuards( |
| 266 | injector: EnvironmentInjector, |
no test coverage detected
searching dependent graphs…