mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-12 11:51:10 +08:00
Remove global module definition from angular-mocks
Because it conficts with commonjs.
See http://wiki.commonjs.org/wiki/Modules/1.1:
> In a module, there must be a free variable "module", that is an Object.
Also see the existing `module` declaration on:
27e02d6674/node/node.d.ts (L61)
Workaround is to use `angular.mock.module` instead of `module`.
Closes #2072
This commit is contained in:
3
angularjs/angular-mocks.d.ts
vendored
3
angularjs/angular-mocks.d.ts
vendored
@@ -237,5 +237,6 @@ declare module angular {
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// functions attached to global object (window)
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
declare var module: (...modules: any[]) => any;
|
||||
//Use `angular.mock.module` instead of `module`, as `module` conflicts with commonjs.
|
||||
//declare var module: (...modules: any[]) => any;
|
||||
declare var inject: angular.IInjectStatic;
|
||||
|
||||
Reference in New Issue
Block a user