feat(types): type hints for hmr events#19579
Conversation
sapphi-red
left a comment
There was a problem hiding this comment.
It sounds a nice addition to me 👍
|
/ecosystem-ci run |
commit: |
This comment was marked as outdated.
This comment was marked as outdated.
|
📝 Ran ecosystem CI on
✅ analogjs, astro, histoire, ladle, laravel, marko, nuxt, previewjs, quasar, qwik, rakkas, react-router, storybook, unocss, vike, vite-environment-examples, vite-plugin-pwa, vite-plugin-react, vite-plugin-react-swc, vite-plugin-vue, vite-plugin-cloudflare, vite-setup-catalogue, vitepress, vitest, vuepress, waku |
|
The SvelteKit error is caused by this line. |
Description
This adds type hints for hmr event names (
hot.on,hot.off,hot.send).These are pretty much only for QOL as types aren't enforced, to still allow untyped custom events by vite plugins.