@@ -75,16 +75,17 @@ export interface NgModuleDef<T, Declarations, Imports, Exports> {
7575 * @param T the module type. In Ivy applications, this must be explicitly
7676 * provided.
7777 */
78- export interface ModuleWithProviders < T = any > {
78+ export interface ModuleWithProviders <
79+ T = any /** TODO(alxhub): remove default when callers pass explicit type param */ > {
7980 ngModule : Type < T > ;
8081 providers ?: Provider [ ] ;
8182}
8283
8384/**
8485 * A schema definition associated with an NgModule.
85- *
86+ *
8687 * @see `@NgModule`, `CUSTOM_ELEMENTS_SCHEMA`, `NO_ERRORS_SCHEMA`
87- *
88+ *
8889 * @param name The name of a defined schema.
8990 *
9091 * @experimental
@@ -135,7 +136,7 @@ export interface NgModule {
135136 /**
136137 * The set of injectable objects that are available in the injector
137138 * of this module.
138- *
139+ *
139140 * @see [Dependency Injection guide](guide/dependency-injection)
140141 * @see [NgModule guide](guide/providers)
141142 *
@@ -145,14 +146,14 @@ export interface NgModule {
145146 * into any component, directive, pipe or service that is a child of this injector.
146147 * The NgModule used for bootstrapping uses the root injector, and can provide dependencies
147148 * to any part of the app.
148- *
149+ *
149150 * A lazy-loaded module has its own injector, typically a child of the app root injector.
150151 * Lazy-loaded services are scoped to the lazy-loaded module's injector.
151152 * If a lazy-loaded module also provides the `UserService`, any component created
152153 * within that module's context (such as by router navigation) gets the local instance
153- * of the service, not the instance in the root injector.
154+ * of the service, not the instance in the root injector.
154155 * Components in external modules continue to receive the instance provided by their injectors.
155- *
156+ *
156157 * ### Example
157158 *
158159 * The following example defines a class that is injected in
@@ -236,7 +237,7 @@ export interface NgModule {
236237 * ```
237238 *
238239 */
239- imports ?: Array < Type < any > | ModuleWithProviders | any [ ] > ;
240+ imports ?: Array < Type < any > | ModuleWithProviders < { } > | any [ ] > ;
240241
241242 /**
242243 * The set of components, directives, and pipes declared in this
0 commit comments