Update definitions for @types/angular-loading-bar to be accurate

This commit is contained in:
Tyrone Dougherty
2017-09-15 13:10:53 +10:00
committed by Tyrone Dougherty
parent 2673835592
commit 5b1894866b
2 changed files with 21 additions and 2 deletions
@@ -19,5 +19,8 @@ barConfig.push({
includeSpinner: true,
includeBar: true,
spinnerTemplate: 'template',
latencyThreshold: 100
latencyThreshold: 100,
startSize: 0.02,
loadingBarTemplate: '',
autoIncrement: true
});
+17 -1
View File
@@ -1,6 +1,7 @@
// Type definitions for angular-loading-bar
// Project: https://github.com/chieffancypants/angular-loading-bar
// Definitions by: Stephen Lautier <https://github.com/stephenlautier>
// Definitions by: Stephen Lautier <https://github.com/stephenlautier>
// Tyrone Dougherty <https://github.com/tyronedougherty>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
@@ -27,6 +28,11 @@ declare module 'angular' {
*/
spinnerTemplate?: string;
/**
* Loading bar template
*/
loadingBarTemplate?: string;
/**
* Latency Threshold
*/
@@ -35,6 +41,16 @@ declare module 'angular' {
* HTML element selector of parent
*/
parentSelector?: string;
/**
* Starting size
*/
startSize?: number;
/**
* Give illusion that there's always progress
*/
autoIncrement?: boolean;
}
}