add commonjs module declarations to angular

This commit is contained in:
vvakame
2015-03-17 22:24:15 +09:00
parent 95d860879f
commit 32194eaa6f
5 changed files with 47 additions and 19 deletions
+11 -1
View File
@@ -5,6 +5,16 @@
/// <reference path="angular.d.ts" />
declare module "angular-mocks/ngMock" {
var _: string;
export = _;
}
declare module "angular-mocks/ngAnimateMock" {
var _: string;
export = _;
}
///////////////////////////////////////////////////////////////////////////////
// functions attached to global object (window)
///////////////////////////////////////////////////////////////////////////////
@@ -59,7 +69,7 @@ declare module angular {
flushNext(expectedDelay?: number): void;
verifyNoPendingTasks(): void;
}
///////////////////////////////////////////////////////////////////////////
// IntervalService
// see http://docs.angularjs.org/api/ngMock.$interval