madonoharu / tsify

A library for generating TypeScript definitions from rust code.
Apache License 2.0
311 stars 42 forks source link

Should support `serde-wasm-bindgen` #9

Closed madonoharu closed 2 years ago

bancek commented 2 years ago

serde-wasm-bindgen integration already works.

https://github.com/rustwasm/wasm-bindgen/issues/2426#issuecomment-1254771687

Thank you for tsify :)

madonoharu commented 2 years ago

It's my pleasure!

As a reminder, the currently generated type is for serde_json. Thus, when used with serde-wasm-bindgen, wrong types are generated for HashMap and others.