Closed Barbapapazes closed 1 month ago
Hi, thanks for the PR i appreciate it but at the current state, i prefer to not depend more on auto generated types. it can both make conflict with higher level framework types and user experience.
Have you any plans to improve the DX of modules? Is it possible to help?
Not until we officially release Nitro Kit and I think i am more likely to recommend direct module imports (like vite plugins that accept options inline) and not nuxt style -- this immediately supports type hints in IDE. but have to think more about it.
π Linked issue
fix #2685
β Type of change
π Description
Hello π,
This feature uses typegen to add modules types within the
NitroConfig
interface to allow autocompletion in thenitro.config.ts
file.With the following module:
TypeScript will help you with autocompletion when you are configuring the module in the
nitro.config.ts
file:Of course, the
foo
property should be an object, and TypeScript will raise an error.π Checklist