mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-18 04:24:30 +08:00
Merge pull request #3333 from martinmcwhorter/master
Defs for ngProgress
This commit is contained in:
1
angularjs/legacy/angular-1.2.d.ts
vendored
1
angularjs/legacy/angular-1.2.d.ts
vendored
@@ -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;
|
||||
|
||||
14
ngprogress/ngprogress-tests.ts
Normal file
14
ngprogress/ngprogress-tests.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
/// <reference path="./ngprogress.d.ts" />
|
||||
|
||||
|
||||
var ngProgress: NgProgress.INgProgress = <any> {};
|
||||
|
||||
ngProgress.start();
|
||||
ngProgress.height('10px');
|
||||
ngProgress.color('red');
|
||||
var statusResult: number = ngProgress.status();
|
||||
ngProgress.stop();
|
||||
ngProgress.set(50);
|
||||
ngProgress.reset();
|
||||
ngProgress.complete();
|
||||
|
||||
20
ngprogress/ngprogress.d.ts
vendored
Normal file
20
ngprogress/ngprogress.d.ts
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
// 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(): number;
|
||||
stop(): void;
|
||||
set(value: number): void;
|
||||
reset(): void;
|
||||
complete(): void;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user