mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-29 08:58:23 +08:00
Update angular-mocks.d.ts
allow
```ts
angular.mock.module("myApp", function($provide) {
$provide.value("myService", {
...
});
})
```
Also signature is consistent with the global in the same file:
```ts
declare var module: (...modules: any[]) => any;
```
This commit is contained in:
4
angularjs/angular-mocks.d.ts
vendored
4
angularjs/angular-mocks.d.ts
vendored
@@ -33,9 +33,7 @@ declare module ng {
|
||||
inject(...inlineAnnotatedConstructor: any[]): any; // this overload is undocumented, but works
|
||||
|
||||
// see http://docs.angularjs.org/api/angular.mock.module
|
||||
module(...modules: string[]): any;
|
||||
module(...modules: Function[]): any;
|
||||
module(modules: Object): any;
|
||||
module(...modules: any[]): any;
|
||||
|
||||
// see http://docs.angularjs.org/api/angular.mock.TzDate
|
||||
TzDate(offset: number, timestamp: number): Date;
|
||||
|
||||
Reference in New Issue
Block a user