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

feat(codegen): function resolving #7750

Merged
merged 2 commits into from
Nov 6, 2024

Conversation

okj579
Copy link
Contributor

@okj579 okj579 commented Nov 5, 2024

Description

Adds support to Typegen for:

What to review

Only worker code for the Typescript parser was changed. Examples of code that wasn't but is now successfully parsed is in the new tests.

Testing

Tests were added for the newly supported features.

Notes for release

Typegen now supports slightly more advanced types of interpolation, e.g.

const query = groq`*[_type="asdf"] { 
    "linkA": ${linkQuery('linkA')},
}`;

Client code can also import through an export all without confusing Typegen.

@okj579 okj579 requested a review from a team as a code owner November 5, 2024 09:25
Copy link

vercel bot commented Nov 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
page-building-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 5, 2024 9:30am
performance-studio ✅ Ready (Inspect) Visit Preview Nov 5, 2024 9:30am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
studio-workshop ⬜️ Ignored (Inspect) Visit Preview Nov 5, 2024 9:30am

Copy link

vercel bot commented Nov 5, 2024

@okj579 is attempting to deploy a commit to the Sanity Sandbox Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Member

@sgulseth sgulseth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! Thank you for helping out here!

@sgulseth sgulseth merged commit c518591 into sanity-io:next Nov 6, 2024
39 of 55 checks passed
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