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 like how the types are clean and properly derived from useApi(TARGET), but wondering if we'd want to expose some of the helpers that already exist in this repo as well in order to make this slightly simpler... or to allow for some sort of additional types 🤔
Normally one wouldn't need this, but as things grow, types might be needed in files that do not call useApi making some of this necessary 🤔
Overview
We need a way to directly expose types for the APIs returned by
useApi
, for examplenavigation.navigate
orsaveMetafields
.Context
I managed to resolve the type through some TS gymnastics like:
I like how the types are clean and properly derived from
useApi(TARGET)
, but wondering if we'd want to expose some of the helpers that already exist in this repo as well in order to make this slightly simpler... or to allow for some sort of additional types 🤔Normally one wouldn't need this, but as things grow, types might be needed in files that do not call
useApi
making some of this necessary 🤔Originally posted by @jbalsas in #1472 (comment)
The text was updated successfully, but these errors were encountered: