mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
docs(error-handling): fix useError() type definition (#7749)
This commit is contained in:
parent
f4f6ed4304
commit
b877b14f81
@ -73,7 +73,7 @@ const handleError = () => clearError({ redirect: '/' })
|
||||
|
||||
### `useError`
|
||||
|
||||
* `function useError (): Ref<any>`
|
||||
* `function useError (): Ref<Error | { url, statusCode, statusMessage, message, description, data }>`
|
||||
|
||||
This function will return the global Nuxt error that is being handled.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user