( providers: Array<Type<CanDeactivate<T>>>, )
| 82 | * @see {@link Route} |
| 83 | */ |
| 84 | export function mapToCanDeactivate<T = unknown>( |
| 85 | providers: Array<Type<CanDeactivate<T>>>, |
| 86 | ): CanDeactivateFn<T>[] { |
| 87 | return providers.map( |
| 88 | (provider) => |
| 89 | (...params) => |
| 90 | inject(provider).canDeactivate(...params), |
| 91 | ); |
| 92 | } |
| 93 | /** |
| 94 | * Maps an injectable class with a resolve function to an equivalent `ResolveFn` |
| 95 | * for use in a `Route` definition. |
nothing calls this directly
no test coverage detected
searching dependent graphs…