From 68858249103e62422ac6aa30555db407abfbfd9f Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Fri, 8 Jul 2016 22:06:42 -0700 Subject: [PATCH] Proper use of angular module --- angular-hotkeys/index.d.ts | 2 +- angular-http-auth/index.d.ts | 2 +- angular-localForage/index.d.ts | 6 +++--- angular-notify/index.d.ts | 2 +- angular-ui-scroll/index.d.ts | 2 +- angular-ui-sortable/index.d.ts | 2 +- angularLocalStorage/index.d.ts | 2 +- js-data-angular/index.d.ts | 1 + ng-grid/index.d.ts | 1 + ui-grid/index.d.ts | 2 ++ 10 files changed, 13 insertions(+), 9 deletions(-) diff --git a/angular-hotkeys/index.d.ts b/angular-hotkeys/index.d.ts index a6e5a4388b..f37171c416 100644 --- a/angular-hotkeys/index.d.ts +++ b/angular-hotkeys/index.d.ts @@ -5,7 +5,7 @@ /// -import * as angular from 'angular'; +import * as ng from 'angular'; declare module 'angular' { export namespace hotkeys { diff --git a/angular-http-auth/index.d.ts b/angular-http-auth/index.d.ts index d96df80a98..803ea36ae2 100644 --- a/angular-http-auth/index.d.ts +++ b/angular-http-auth/index.d.ts @@ -5,7 +5,7 @@ /// -import * as angular from 'angular'; +import * as ng from 'angular'; declare module 'angular' { export namespace httpAuth { diff --git a/angular-localForage/index.d.ts b/angular-localForage/index.d.ts index 4d78b138ea..7d2c82120b 100644 --- a/angular-localForage/index.d.ts +++ b/angular-localForage/index.d.ts @@ -49,16 +49,16 @@ declare module 'angular' { iterate(iteratorCallback: (value: string | number, key: string) => T): angular.IPromise; - bind($scope: ng.IScope, key: string): angular.IPromise; + bind($scope: angular.IScope, key: string): angular.IPromise; - bind($scope: ng.IScope, config: { + bind($scope: angular.IScope, config: { key: string; defaultValue?: any; scopeKey?: string; name?: string; }): angular.IPromise; - unbind($scope: ng.IScope, key: string, scopeKey?: string): void; + unbind($scope: angular.IScope, key: string, scopeKey?: string): void; createInstance(config: LocalForageConfig): ILocalForageService; instance(name: string): ILocalForageService; diff --git a/angular-notify/index.d.ts b/angular-notify/index.d.ts index 60f3d22233..1053b41b2f 100644 --- a/angular-notify/index.d.ts +++ b/angular-notify/index.d.ts @@ -5,7 +5,7 @@ /// -import * as angular from 'angular'; +import * as ng from 'angular'; declare module 'angular' { export namespace cgNotify { diff --git a/angular-ui-scroll/index.d.ts b/angular-ui-scroll/index.d.ts index 823df30778..9727ee6061 100644 --- a/angular-ui-scroll/index.d.ts +++ b/angular-ui-scroll/index.d.ts @@ -5,7 +5,7 @@ /// -import * as angular from 'angular'; +import * as ng from 'angular'; declare module 'angular' { export namespace ui { diff --git a/angular-ui-sortable/index.d.ts b/angular-ui-sortable/index.d.ts index ecea697030..0a7a86754a 100644 --- a/angular-ui-sortable/index.d.ts +++ b/angular-ui-sortable/index.d.ts @@ -5,7 +5,7 @@ /// -import * as angular from 'angular'; +import * as ng from 'angular'; declare module 'angular' { export namespace ui { diff --git a/angularLocalStorage/index.d.ts b/angularLocalStorage/index.d.ts index 9a2d1b24ff..34293b218b 100644 --- a/angularLocalStorage/index.d.ts +++ b/angularLocalStorage/index.d.ts @@ -5,7 +5,7 @@ /// -import * as angular from 'angular'; +import * as ng from 'angular'; declare module 'angular' { export namespace localStorage { diff --git a/js-data-angular/index.d.ts b/js-data-angular/index.d.ts index 9ddca45baa..9c30feb8dc 100644 --- a/js-data-angular/index.d.ts +++ b/js-data-angular/index.d.ts @@ -7,6 +7,7 @@ /// import * as JSData from 'js-data'; +import * as ng from 'angular'; declare module 'js-data' { diff --git a/ng-grid/index.d.ts b/ng-grid/index.d.ts index 053ca62c27..2cad441edd 100644 --- a/ng-grid/index.d.ts +++ b/ng-grid/index.d.ts @@ -8,6 +8,7 @@ // Changelog: // 25/4/2014: Added interfaces for all classes and services +/// declare class ngGridReorderable { constructor(); diff --git a/ui-grid/index.d.ts b/ui-grid/index.d.ts index e9a2f5e54c..fc7d59f2d4 100644 --- a/ui-grid/index.d.ts +++ b/ui-grid/index.d.ts @@ -17,6 +17,8 @@ /// /// +import * as ng from "angular"; + export = uiGrid; export as namespace uiGrid;