Skip to content

Suggestion: Adding automatic types generation for sanity schema #54

@rusbers

Description

@rusbers

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.

Metadata

Metadata

Assignees

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions