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
I'm trying to make a field hook that queries another collection, but the payload object in the req parameter isn't correctly typed. Or rather, it seems like GeneratedTypes doesn't resolve correctly. If I CTRL-click through the type definitions I end up at the right place (my generated types), but they do not surface in Intellisense.
I'm sure it's me doing something wrong, but I cannot understand what! Below are some screenshots of Intellisense not figuring things out..
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to make a field hook that queries another collection, but the payload object in the
req
parameter isn't correctly typed. Or rather, it seems likeGeneratedTypes
doesn't resolve correctly. If I CTRL-click through the type definitions I end up at the right place (my generated types), but they do not surface in Intellisense.I'm sure it's me doing something wrong, but I cannot understand what! Below are some screenshots of Intellisense not figuring things out..
Beta Was this translation helpful? Give feedback.
All reactions