mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
fixed errors from --noImplicitAny option
This commit is contained in:
@@ -22,13 +22,13 @@ mock.inject(
|
||||
);
|
||||
|
||||
mock.inject(
|
||||
['$rootScope', function ($rootScope) { return 1; }]);
|
||||
['$rootScope', function ($rootScope: ng.IRootScopeService) { return 1; }]);
|
||||
|
||||
// This overload is not documented on the website, but flows from
|
||||
// how the injector works.
|
||||
mock.inject(
|
||||
['$rootScope', function ($rootScope) { return 1; }],
|
||||
['$rootScope', function ($rootScope) { return 2; }]);
|
||||
['$rootScope', function ($rootScope: ng.IRootScopeService) { return 1; }],
|
||||
['$rootScope', function ($rootScope: ng.IRootScopeService) { return 2; }]);
|
||||
|
||||
mock.module('module1', 'module2');
|
||||
mock.module(
|
||||
|
||||
Reference in New Issue
Block a user