Added inc overload that takes an amount

This commit is contained in:
Mikael Selander
2014-11-17 10:44:23 +01:00
parent 71e7549601
commit d4c49e7eff
+8 -1
View File
@@ -23,6 +23,13 @@ interface NProgressStatic {
*/
inc(): NProgressStatic;
/**
* Increments the progress bar with a set amount.
* @param {number} amount This will get the current status value and adds the value until status is max 0.994
* @returns {NProgressConfigureOptions} The current NProgress object, useful for chaining.
*/
inc(amount: number): NProgressStatic;
/**
* Removes the progress indicator.
*/
@@ -102,4 +109,4 @@ interface NProgressConfigureOptions {
template?: string;
}
declare var NProgress: NProgressStatic;
declare var NProgress: NProgressStatic;