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
Currently, given an IDL type IDL we can derive Typescript types for its accounts using eg. IdlAccounts<IDL>['pixel']
There doesn't seem to be an equivalent for event types. It'd be useful to have this so that we can use this type in event handling code on the client without manually re-writing the types.
It seems that the IDL behaviour is similar to accounts, and we already have TS-friendly field names. So I think it'd just be a case of adding a similar utility type to IdlAccounts<IDL> that can handle events.
The text was updated successfully, but these errors were encountered:
Currently, given an IDL type
IDL
we can derive Typescript types for its accounts using eg.IdlAccounts<IDL>['pixel']
There doesn't seem to be an equivalent for event types. It'd be useful to have this so that we can use this type in event handling code on the client without manually re-writing the types.
It seems that the IDL behaviour is similar to accounts, and we already have TS-friendly field names. So I think it'd just be a case of adding a similar utility type to
IdlAccounts<IDL>
that can handle events.The text was updated successfully, but these errors were encountered: