Closed anatawa12 closed 3 months ago
For some reason assert_ts!(&[&str], "string[]");
works but when the type is put in a struct it breaks so that explained how this wasn't noticed earlier.
The bug is this implementation as we passthrough to T
and not Vec<T>
.
I'm using 2.0.0-rc.20
I tried export the following type to typescript through
tauri-specta
but it generates type like this
In this type,
defaultUnityArguments
(in rustdefault_unity_arguments: &'a [&'a str]
) should bestring[]
because array of string, but specta generates string