Update angular.module to accept an Injectable as the configFn.

This is undocumented behavior in Angular, but works because this argument is passed to $injector.invoke.
See 49aba51e6b/src/loader.js lines 81, 370, and 111
This commit is contained in:
Robin Keller 2017-12-21 13:03:39 -08:00
parent f3e0c3d36f
commit 25bf971c33

View File

@ -159,7 +159,7 @@ declare namespace angular {
module(
name: string,
requires?: string[],
configFn?: Function): IModule;
configFn?: Injectable<Function>): IModule;
noop(...args: any[]): void;
reloadWithDebugInfo(): void;