mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
`makeEnvironmentProviders` constructs the wrapped `EnvironmentProviders` type, which can only be used in environment injectors (not element injectors). It makes sense that `makeEnvironmentProviders` should be able to accept existing `EnvironmentProviders`-wrapped providers, since it will be providing the same guarantee, but the current types do not allow this. This commit fixes the typings to allow nesting `EnvironmentProviders` and adds a test to verify that it will work. PR Close #48720 |
||
|---|---|---|
| .. | ||
| testing | ||
| errors.md | ||
| global_utils.md | ||
| index.md | ||