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
Not sure what the best practice is here and I went over the documentation (incl. the cheat sheet) multiple times.
I would appreciate any input! Thank you.
The text was updated successfully, but these errors were encountered:
📚 What are you trying to do? Please describe.
I want to define the type for my getStaticProps function that is making queries to sanity.
🔍 What have you tried?
Using the type returned by queryBuilder.use() at the top of my file to retrieve the type. But it feels wrong. Like this:
ℹ️ Additional context
This is what I am building on top of. I have no idea how to type my props.
with this working query and type retrieval.
Not sure what the best practice is here and I went over the documentation (incl. the cheat sheet) multiple times.
I would appreciate any input! Thank you.
The text was updated successfully, but these errors were encountered: