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
This PR adds an overload of `register_type` that allows registering type
aliases for `val`-based types. With this, clients can reference a
stable, named type without needing to depend on (or update alongside)
its underlying definition.
E.g.,
```
EMSCRIPTEN_DECLARE_VAL_TYPE(MyOwnEnum);
register_type<MyOwnEnum>("MyOwnEnum", "'a' | 'b'");
```
This addresses the issue raised in
#25145.
0 commit comments