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 would like to define a custom error class in my Rust code and be able to consume it from my TypeScript code. Looking at the documentation, I can only see how to do this the opposite way around (example).
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
-
I would like to define a custom error class in my Rust code and be able to consume it from my TypeScript code. Looking at the documentation, I can only see how to do this the opposite way around (example).
I have tried something like this:
But it clearly isn't the right approach. Is there any way to achieve what I'm trying to do?
Beta Was this translation helpful? Give feedback.
All reactions