diff --git a/angularjs/legacy/angular-1.2.d.ts b/angularjs/legacy/angular-1.2.d.ts index 08cc6fcbc4..fb21b030a6 100644 --- a/angularjs/legacy/angular-1.2.d.ts +++ b/angularjs/legacy/angular-1.2.d.ts @@ -285,7 +285,6 @@ declare module ng { // Documentation states viewValue and modelValue to be a string but other // types do work and it's common to use them. $setViewValue(value: any): void; - $setPristine(): void; $viewValue: any; $modelValue: any; diff --git a/ngprogress/ngprogress-tests.ts b/ngprogress/ngprogress-tests.ts new file mode 100644 index 0000000000..9d52f97291 --- /dev/null +++ b/ngprogress/ngprogress-tests.ts @@ -0,0 +1,14 @@ +/// + + +var ngProgress: NgProgress.INgProgress = {}; + +ngProgress.start(); +ngProgress.height('10px'); +ngProgress.color('red'); +var statusResult: number = ngProgress.status(); +ngProgress.stop(); +ngProgress.set(50); +ngProgress.reset(); +ngProgress.complete(); + diff --git a/ngprogress/ngprogress.d.ts b/ngprogress/ngprogress.d.ts new file mode 100644 index 0000000000..fdcdd28cb5 --- /dev/null +++ b/ngprogress/ngprogress.d.ts @@ -0,0 +1,20 @@ +// Type definitions for ngProgress 1.0.7 +// Project: http://victorbjelkholm.github.io/ngProgress/ +// Definitions by: Martin McWhorter +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +declare module NgProgress { + + export interface INgProgress { + start(): void; + height(height: string): void; + color(color: string): void; + status(): number; + stop(): void; + set(value: number): void; + reset(): void; + complete(): void; + } + +} +