Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add compatibility with @sanity-typed #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

saiichihashimoto
Copy link

Using.Sanity.Typed.mp4

@sanity-typed enables typed output from sanity's groq clients!

When using untyped plugins (like this one), it'll provide an unknown for the plugin's values, which isn't ideal. Luckily if you use the typed definePlugin and castFromTyped methods, you can enable typed values and continue to support your default users!

Here is the guide on the changes in this PR.

@chenaski
Copy link
Member

Hey @saiichihashimoto, it looks great! We've added PR to merge the last changes along with some minor fixes, and I think we can merge it after that.

@saiichihashimoto
Copy link
Author

@chenaski great! Lmk if there's anything you need from me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants