fix(nuxt): correct finish types and add to docs

resolves https://github.com/nuxt/nuxt/issues/26317
This commit is contained in:
Daniel Roe 2024-03-17 20:09:19 +01:00
parent 401370b3a0
commit 0d9c63b828
No known key found for this signature in database
GPG Key ID: CBC814C393D93268
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ Set `isLoading` to true and start to increase the `progress` value.
### `finish()` ### `finish()`
Set the `progress` value to `100`, stop all timers and intervals then reset the loading state `500` ms later. 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.
### `clear()` ### `clear()`

View File

@ -25,7 +25,7 @@ export type LoadingIndicator = {
isLoading: Ref<boolean> isLoading: Ref<boolean>
start: () => void start: () => void
set: (value: number) => void set: (value: number) => void
finish: (opts: { force?: boolean }) => void finish: (opts?: { force?: boolean }) => void
clear: () => void clear: () => void
} }