From 25bf971c33fca786fd8612b451ef215bcc4ccd95 Mon Sep 17 00:00:00 2001 From: Robin Keller Date: Thu, 21 Dec 2017 13:03:39 -0800 Subject: [PATCH] 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 https://github.com/angular/angular.js/blob/49aba51e6bfd3f6d59c0f28628cc983d84438cfa/src/loader.js lines 81, 370, and 111 --- types/angular/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/angular/index.d.ts b/types/angular/index.d.ts index f3b64e2136..5d8b6315b0 100644 --- a/types/angular/index.d.ts +++ b/types/angular/index.d.ts @@ -159,7 +159,7 @@ declare namespace angular { module( name: string, requires?: string[], - configFn?: Function): IModule; + configFn?: Injectable): IModule; noop(...args: any[]): void; reloadWithDebugInfo(): void;