feat: 引入tauri-specta来保证类型安全

This commit is contained in:
lanyeeee
2025-07-09 05:28:01 +08:00
parent 81a98dc54a
commit 2b4b7b6862
5 changed files with 196 additions and 3 deletions
+3
View File
@@ -23,3 +23,6 @@ tauri-plugin-opener = "2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
specta = { version = "=2.0.0-rc.20", features = ["serde_json"] }
tauri-specta = { version = "=2.0.0-rc.20", features = ["derive", "typescript"] }
specta-typescript = { version = "=0.0.7" }