Replies: 1 comment
-
Can accomplish this in a couple ways. viem
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Consider this:
At this point,
contract
is typed and all its accessors are typed as well (And BTW it's really great, we're migrating a big app from0.12
to1.0
and it's such a pleasure).The problem at this point seems to be that there's no easy way to formulate the type of
contract
, so if a function needs to receive it... It's fairly cumbersome.It would be nice to see something like:
We tried to play a little bit with
ReturnType<typeof getContract>
but we got nowhere.Any idea, or should we suggest that this could become a feature?
Beta Was this translation helpful? Give feedback.
All reactions