mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-07 16:30:12 +08:00
Definitions for ngProgress
Definitions for https://github.com/victorbjelkholm/ngprogress
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
/// <reference path="./ngprogress.d.ts" />
|
||||
|
||||
|
||||
var ngProgress: NgProgress.INgProgress = <any> {};
|
||||
|
||||
ngProgress.start();
|
||||
ngProgress.height('10px');
|
||||
ngProgress.color('red');
|
||||
|
||||
var statusResult: number = undefined;
|
||||
ngProgress.status();
|
||||
|
||||
ngProgress.stop();
|
||||
ngProgress.set(50);
|
||||
ngProgress.reset();
|
||||
ngProgress.complete();
|
||||
Vendored
+19
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user