@@ -22,9 +22,13 @@ export class NgModule {
2222 /**
2323 * @param {string } name - Name of the module
2424 * @param {Array<string> } requires - List of modules which the injector will load before the current module
25- * @param {Function } [configFn]
25+ * @param {import("../../interface.js").Injectable } [configFn]
2626 */
27- constructor ( name : string , requires : Array < string > , configFn ?: Function ) ;
27+ constructor (
28+ name : string ,
29+ requires : Array < string > ,
30+ configFn ?: import ( "../../interface.js" ) . Injectable ,
31+ ) ;
2832 /**
2933 * Name of the current module.
3034 * @type {string }
@@ -42,8 +46,8 @@ export class NgModule {
4246 invokeQueue : Array < Array < any > > ;
4347 /** @type {!Array<Array<*>> } */
4448 configBlocks : Array < Array < any > > ;
45- /** @type {!Array.<Function > } */
46- runBlocks : Array < Function > ;
49+ /** @type {!Array.<import("../../interface.js").Injectable > } */
50+ runBlocks : Array < import ( "../../interface.js" ) . Injectable > ;
4751 /**
4852 * @param {string } name
4953 * @param {any } object
@@ -58,62 +62,94 @@ export class NgModule {
5862 constant ( name : string , object : any ) : NgModule ;
5963 /**
6064 *
61- * @param {Function } configFn
65+ * @param {import("../../interface.js").Injectable } configFn
6266 * @returns {NgModule }
6367 */
64- config ( configFn : Function ) : NgModule ;
68+ config ( configFn : import ( "../../interface.js" ) . Injectable ) : NgModule ;
6569 /**
66- * @param {Function } block
70+ * @param {import("../../interface.js").Injectable } block
6771 * @returns {NgModule }
6872 */
69- run ( block : Function ) : NgModule ;
73+ run ( block : import ( "../../interface.js" ) . Injectable ) : NgModule ;
7074 /**
7175 * @param {string } name
72- * @param {* } options
76+ * @param {import("../../interface.js").Injectable } options
7377 * @returns {NgModule }
7478 */
75- component ( name : string , options : any ) : NgModule ;
79+ component (
80+ name : string ,
81+ options : import ( "../../interface.js" ) . Injectable ,
82+ ) : NgModule ;
7683 /**
7784 * @param {string } name
78- * @param {* } providerFunction
85+ * @param {import("../../interface.js").Injectable } providerFunction
7986 * @returns {NgModule }
8087 */
81- factory ( name : string , providerFunction : any ) : NgModule ;
88+ factory (
89+ name : string ,
90+ providerFunction : import ( "../../interface.js" ) . Injectable ,
91+ ) : NgModule ;
8292 /**
8393 * @param {string } name
84- * @param {* } serviceFunction
94+ * @param {import("../../interface.js").Injectable } serviceFunction
8595 * @returns {NgModule }
8696 */
87- service ( name : string , serviceFunction : any ) : NgModule ;
97+ service (
98+ name : string ,
99+ serviceFunction : import ( "../../interface.js" ) . Injectable ,
100+ ) : NgModule ;
88101 /**
89102 * @param {string } name
90- * @param {* } providerType
103+ * @param {import("../../interface.js").Injectable } providerType
91104 * @returns {NgModule }
92105 */
93- provider ( name : string , providerType : any ) : NgModule ;
106+ provider (
107+ name : string ,
108+ providerType : import ( "../../interface.js" ) . Injectable ,
109+ ) : NgModule ;
94110 /**
95111 * @param {string } name
96- * @param {* } decorFn
112+ * @param {import("../../interface.js").Injectable } decorFn
97113 * @returns {NgModule }
98114 */
99- decorator ( name : string , decorFn : any ) : NgModule ;
115+ decorator (
116+ name : string ,
117+ decorFn : import ( "../../interface.js" ) . Injectable ,
118+ ) : NgModule ;
100119 /**
101120 * @param {string } name
102- * @param {* } directiveFactory
121+ * @param {import("../../interface.js").Injectable } directiveFactory
103122 * @returns {NgModule }
104123 */
105- directive ( name : string , directiveFactory : any ) : NgModule ;
124+ directive (
125+ name : string ,
126+ directiveFactory : import ( "../../interface.js" ) . Injectable ,
127+ ) : NgModule ;
106128 /**
107129 * @param {string } name
108- * @param {* } animationFactory
130+ * @param {import("../../interface.js").Injectable } animationFactory
109131 * @returns {NgModule }
110132 */
111- animation ( name : string , animationFactory : any ) : NgModule ;
112- filter ( name : any , filterFn : any ) : this;
133+ animation (
134+ name : string ,
135+ animationFactory : import ( "../../interface.js" ) . Injectable ,
136+ ) : NgModule ;
113137 /**
114138 * @param {string } name
115- * @param {* } ctlFn
139+ * @param {import("../../interface.js").Injectable } filterFn
140+ * @return {NgModule }
141+ */
142+ filter (
143+ name : string ,
144+ filterFn : import ( "../../interface.js" ) . Injectable ,
145+ ) : NgModule ;
146+ /**
147+ * @param {string } name
148+ * @param {import("../../interface.js").Injectable } ctlFn
116149 * @returns {NgModule }
117150 */
118- controller ( name : string , ctlFn : any ) : NgModule ;
151+ controller (
152+ name : string ,
153+ ctlFn : import ( "../../interface.js" ) . Injectable ,
154+ ) : NgModule ;
119155}
0 commit comments