Typed wrapper around Tauri's invoke.
invoke
On success returns the typed result T. On failure attempts to parse the error as AppError; if parsing fails (unexpected shape) it constructs a synthetic Internal AppError so callers always deal with a uniform error type.
T
AppError
Internal
Optional
Typed wrapper around Tauri's
invoke.On success returns the typed result
T. On failure attempts to parse the error asAppError; if parsing fails (unexpected shape) it constructs a syntheticInternalAppError so callers always deal with a uniform error type.