diff --git a/ngprogress/ngprogress-tests.ts b/ngprogress/ngprogress-tests.ts new file mode 100644 index 000000000..485682054 --- /dev/null +++ b/ngprogress/ngprogress-tests.ts @@ -0,0 +1,16 @@ +/// + + +var ngProgress: NgProgress.INgProgress = {}; + +ngProgress.start(); +ngProgress.height('10px'); +ngProgress.color('red'); + +var statusResult: number = undefined; +ngProgress.status(); + +ngProgress.stop(); +ngProgress.set(50); +ngProgress.reset(); +ngProgress.complete(); \ No newline at end of file diff --git a/ngprogress/ngprogress.d.ts b/ngprogress/ngprogress.d.ts new file mode 100644 index 000000000..f34496960 --- /dev/null +++ b/ngprogress/ngprogress.d.ts @@ -0,0 +1,19 @@ +// Type definitions for ngProgress 1.0.7 +// Project: http://victorbjelkholm.github.io/ngProgress/ +// Definitions by: Martin McWhorter https://github.com/martinmcwhorter +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +declare module NgProgress { + + export interface INgProgress { + start(): void; + height(height: string): void; + color(color: string): void; + status(): string; + stop(): void; + set(value: number): void; + reset(): void; + complete(): void; + } + +} \ No newline at end of file