Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0d9c63b

Browse files
committed
fix(nuxt): correct finish types and add to docs
resolves #26317
1 parent 401370b commit 0d9c63b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/3.api/2.composables/use-loading-indicator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Set `isLoading` to true and start to increase the `progress` value.
3939

4040
### `finish()`
4141

42-
Set the `progress` value to `100`, stop all timers and intervals then reset the loading state `500` ms later.
42+
Set the `progress` value to `100`, stop all timers and intervals then reset the loading state `500` ms later. `finish` accepts a `{ force: true }` option to skip the interval before the state is reset.
4343

4444
### `clear()`
4545

packages/nuxt/src/app/composables/loading-indicator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export type LoadingIndicator = {
2525
isLoading: Ref<boolean>
2626
start: () => void
2727
set: (value: number) => void
28-
finish: (opts: { force?: boolean }) => void
28+
finish: (opts?: { force?: boolean }) => void
2929
clear: () => void
3030
}
3131

0 commit comments

Comments
 (0)