diff --git a/nprogress/NProgress.d.ts b/nprogress/NProgress.d.ts index a86558aae7..6bad4cfd1f 100644 --- a/nprogress/NProgress.d.ts +++ b/nprogress/NProgress.d.ts @@ -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; \ No newline at end of file +declare var NProgress: NProgressStatic;