mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +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`
|
### `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.
|
This function will return the global Nuxt error that is being handled.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user