mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-16 12:50:42 +08:00
Added inc overload that takes an amount
This commit is contained in:
1 parent
71e7549601
commit
d4c49e7eff
1 file changed
+8
-1
Vendored
+8
-1
@@ -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;
|
||||
Reference in new issue
Block a user