@@ -190,8 +190,8 @@ function annotate(fn, strictDi, name) {
190
190
* @description
191
191
* Invoke the method and supply the method arguments from the `$injector`.
192
192
*
193
- * @param {! Function } fn The function to invoke. Function parameters are injected according to the
194
- * {@link guide/di $inject Annotation} rules.
193
+ * @param {Function|Array.<string|Function> } fn The injectable function to invoke. Function parameters are
194
+ * injected according to the {@link guide/di $inject Annotation} rules.
195
195
* @param {Object= } self The `this` for the invoked method.
196
196
* @param {Object= } locals Optional object. If preset then any argument names are read from this
197
197
* object first, before the `$injector` is consulted.
@@ -458,8 +458,8 @@ function annotate(fn, strictDi, name) {
458
458
* configure your service in a provider.
459
459
*
460
460
* @param {string } name The name of the instance.
461
- * @param {function() } $getFn The $getFn for the instance creation. Internally this is a short hand
462
- * for `$provide.provider(name, {$get: $getFn})`.
461
+ * @param {Function|Array.<string|Function> } $getFn The injectable $getFn for the instance creation.
462
+ * Internally this is a short hand for `$provide.provider(name, {$get: $getFn})`.
463
463
* @returns {Object } registered provider instance
464
464
*
465
465
* @example
@@ -494,7 +494,8 @@ function annotate(fn, strictDi, name) {
494
494
* as a type/class.
495
495
*
496
496
* @param {string } name The name of the instance.
497
- * @param {Function } constructor A class (constructor function) that will be instantiated.
497
+ * @param {Function|Array.<string|Function> } constructor An injectable class (constructor function)
498
+ * that will be instantiated.
498
499
* @returns {Object } registered provider instance
499
500
*
500
501
* @example
@@ -593,7 +594,7 @@ function annotate(fn, strictDi, name) {
593
594
* object which replaces or wraps and delegates to the original service.
594
595
*
595
596
* @param {string } name The name of the service to decorate.
596
- * @param {Function|Array } decorator This function will be invoked when the service needs to be
597
+ * @param {Function|Array.<string|Function> } decorator This function will be invoked when the service needs to be
597
598
* instantiated and should return the decorated service instance. The function is called using
598
599
* the {@link auto.$injector#invoke injector.invoke} method and is therefore fully injectable.
599
600
* Local injection arguments:
0 commit comments