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

This commit is contained in:
Yu Yamazaki 2022-09-22 22:23:46 +09:00 committed by GitHub
parent f4f6ed4304
commit b877b14f81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.