mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
Added overload to angular.mock.inject function to allow array-style dependency injection, which the function supports. Added test excercising the overload.
This commit is contained in:
1 parent
36febf66ea
commit
9e30ccf2e5
2 files changed
+10
No files matched your search
Vendored
+1
@@ -30,6 +30,7 @@ declare module ng {
|
||||
|
||||
// see http://docs.angularjs.org/api/angular.mock.inject
|
||||
inject(...fns: Function[]): any;
|
||||
inject(...inlineAnnotatedConstructor: any[]): any; // this overload is undocumented, but works
|
||||
|
||||
// see http://docs.angularjs.org/api/angular.mock.module
|
||||
module(...modules: string[]): any;
|
||||
|
||||
Reference in new issue
Block a user