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

docs(error-handling): fix useError() type definition #7749

Merged
merged 1 commit into from
Sep 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/content/1.getting-started/8.error-handling.md
Original file line number Diff line number Diff line change
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