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
This is an interesting one and it esentially comes down to do you want Result<T, unknown> or Result<T, TErr> where TErr is the error type in Rust. I think both are reasonable but I think the latter is going to be the more useful hence why we choose it.
Typescript doesn't let us know what errors can actually occur so we can't properly type it unless we make this distinction. In practice i'm not sure if Tauri throws errors or not so I don't know if you will hit this or not (but I assume you might have to report this).
I suspect we might want to implement ErrorHandlingMode::ResultUnknown or something like that to always catch the Tauri errors and change the error type on the function to never.
is there a way to avoid
tauri-specta
from doing theseThe text was updated successfully, but these errors were encountered: