Skip to content

Generate typed invoke() command bindings with tauri-specta #118

Description

@Zlyzart

Summary

Follow-up to #83 (which generates the DTO types via specta). Once the type bindings are in place, replace the hand-written invoke() calls in ui/src/api/tauri.ts with typed command wrappers generated by tauri-specta. Today invoke("get_board") is typed only by its return annotation — the command name string and argument names are unverified. tauri-specta can emit a commands.ts that generates a strongly-typed wrapper per #[tauri::command], making a renamed command a compile error in TypeScript.

Depends on

#83 — specta derives and tauri-specta dep must be in place first.

Needs scoping first

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:desktopTauri desktop shell: src-tauri/.area:frontendReact/TypeScript UI: ui/.status:needs-decisionBlocked on a human: design sign-off, a clarifying answer, or repeated agent failure.type:refactorInternal restructuring with no behavior change.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions