You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thank you for providing a great TypeScript-friendly template!
I was wondering if there are any plans to integrate automatic type generation for Sanity schemas using the sanity typegen command.
Currently, whenever I modify the schema to fit my project's specific requirements, I need to manually update the TypeScript types and adjust prop types for components accordingly. Automating this process would greatly improve development efficiency and reduce the risk of type mismatches.
Additionally, if automatic type generation is added, it would be great to run it automatically on every dev command, similar to how it's handled in the official Sanity clean template.
Would love to hear your thoughts on this! Thanks for your time and for maintaining this project.
The text was updated successfully, but these errors were encountered:
Automatic typegen is definitely a consideration I will make. I'll need to refactor how the GROQ queries are currently in place, but I 100% see the benefits for this 👍
The only drawback I have found when trying to implement typegen previously (with the official Sanity package) was the types not being globally accessible (as they are in the current codebase with the types/Sanity.d.ts file). I'll attempt again at this, perhaps in a new git branch some time soon.
First of all, thank you for providing a great TypeScript-friendly template!
I was wondering if there are any plans to integrate automatic type generation for Sanity schemas using the sanity typegen command.
Currently, whenever I modify the schema to fit my project's specific requirements, I need to manually update the TypeScript types and adjust prop types for components accordingly. Automating this process would greatly improve development efficiency and reduce the risk of type mismatches.
Additionally, if automatic type generation is added, it would be great to run it automatically on every dev command, similar to how it's handled in the official Sanity clean template.
Would love to hear your thoughts on this! Thanks for your time and for maintaining this project.
The text was updated successfully, but these errors were encountered: