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
Do you think you could maybe open a pull request that fixes it?
I would have opened one but unfortunately I'm not familiar enough with macros to do so.
Let me try to paraphrase the problem differently.
So tauri converts Result<T, E> into JsPromise<T> which then fails to deserialize back into Result since the enum is erased.
To fix that problem, the macro should convert the function signature Result<T, E> to just T. But threat functions which do not return an result as it does atm.
Hi,
the Tauri doc states:
Which means the promise https://github.com/ChangeCaps/tauri-invoke/blob/main/src/lib.rs#L65 will resolve to an
u32
for the commandTherefore the macro generated function should be:
The text was updated successfully, but these errors were encountered: