a typed command client in the webview, generated from wallet-entities #13
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent: #1
Scope
ui/src/api/wallet.tsis one function per Tauri command, each typed with the ts-rs output inui/src/api/generated. Decide and document the error shape: commands returnResult<T, WalletError>and the client rethrows a typedWalletError. Add auseCommandhook or a React Query setup so screens never callinvokedirectly.Acceptance
invoke(appears exactly once inui/src, inapi/wallet.ts. A field renamed inwallet-entitiesfailspnpm typecheckuntil the UI follows.Depends on
Nothing.