starters
starters copied to clipboard
fix(react-vite,vue-vite): add vitest type reference
This change solves the TS error on the Vite config object following the Vitest documentation.
Hello @diegoazh thanks for the contribution! Can you provide a link to the documentation that suggests this approach?
Sure @sean-perkins, you can check it here, on the second code example.
Summarizing you can use the defineConfig method from vitest/config or use the three slashes approach to import all needed types from Vitest.
To avoid changing code because the error is only a type inference I decided to use the three slashes approach here. I think is clean and clear enough.
do you need anything else @sean-perkins?
What happens with this PR? How should I continue to merge this change?
💪🏼 all tests passed successfully 🎉, let me know if I can help with anything else to merge this. Thank you.