mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +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: https://github.com/borisyankov/DefinitelyTyped/blob/27e02d6674ffe8186a567515b4c157bcf945911e/node/node.d.ts#L61 Workaround is to use `angular.mock.module` instead of `module`. Closes #2072
This commit is contained in:
Vendored
+2
-1
@@ -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