nuxt
nuxt copied to clipboard
refactor(nuxt): replace Nuxt payload's error type with NuxtError
๐ Linked issue
โ Type of change
- [ ] ๐ Documentation (updates to the documentation, readme or JSdoc annotations)
- [ ] ๐ Bug fix (a non-breaking change that fixes an issue)
- [x] ๐ Enhancement (improving an existing functionality like performance)
- [ ] โจ New feature (a non-breaking change that adds functionality)
- [ ] ๐งน Chore (updates to the build process or auxiliary tools and libraries)
- [ ] โ ๏ธ Breaking change (fix or feature that would cause existing functionality to change)
๐ Description
Enforces a NuxtError
type on the NuxtPayload
's error property for consistency.
๐ Checklist
- [ ] I have linked an issue or discussion.
- [ ] I have added tests (if possible).
- [x] I have updated the documentation accordingly.
Run & review this pull request in StackBlitz Codeflow.
Live Preview ready!
Name | Edit | Preview | Latest Commit |
---|---|---|---|
Nuxt Docs | Edit on Studio โ๏ธ | View Live Preview | a47ecb405e866ef0273d2d093a9a38bc6aa3fa7c |
Added! As the nuxt-error-page.vue
isn't using TypeScript, we probably need to leave it as it is:
https://github.com/nuxt/nuxt/blob/a995f724eadaa06d5443b188879ac18dfe73de2e/packages/nuxt/src/app/components/nuxt-error-page.vue#L9