-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a feature for wasm to allow HashMap<K, V> -> Map<K,V> #13
Comments
The goal of this library is to generate Typescript types describing the JSON serialization of Rust types. Essentially, if you take a Rust value, convert it to a JSON string using If you could share more about your use case, maybe I could provide some advice on how to get the types you're looking for? |
We are trying to be compatible with serde_wasm_bindgen which by default converts |
I would say in general that it's outside of the current scope of this library to support the default serialization behavior of |
When using wasm
HashMap
gets converted to Map but this crate is generatingRecord
fromHashMap
Eg
pub input: HashMap<String, String>
is getting converted to
input: Record<string, string>;
instead of
input: Map<string, string>;
Can we add a feature to add support for wasm?
I can raise a PR if you approve
The text was updated successfully, but these errors were encountered: