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
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
-
Hey everybody, does anybody know if we can generate Typescript
interface
usingwasm-bindgen
?For example, let's say I have this Rust code:
It will currently generate this Typescript code:
I'm wondering if we could generate a
interface
instead ofclass
:While
class
andinterface
are similar in Typescript, they have different meaning and it might be ideal to use one instead of the other.Beta Was this translation helpful? Give feedback.
All reactions