ts-gen should probably default to this mode to better support arrays - wasm-bindgen/wasm-bindgen#5145.
This might couple nicely with a JsArrayLike trait, to support e.g. all of &[String], &[JsString] and Array<JsString> as ways of passing a string[].
ts-gen should probably default to this mode to better support arrays - wasm-bindgen/wasm-bindgen#5145.
This might couple nicely with a
JsArrayLiketrait, to support e.g. all of&[String],&[JsString]andArray<JsString>as ways of passing astring[].