Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
docs(error-handling): fix useError() type definition (#7749)
Browse files Browse the repository at this point in the history
  • Loading branch information
uyamazak committed Sep 22, 2022
1 parent f4f6ed4 commit b877b14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/1.getting-started/8.error-handling.md
Expand Up @@ -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.

Expand Down

0 comments on commit b877b14

Please sign in to comment.