Introduce type sync from rust to typescript
yuniruyuni opened this issue · comments
What is issue?
- Tauri's
command
system doesn't have type sync with typescript side. - So currently, we need to define types of protocol in both languages and it needs to sync manually.
- But such boilerplate code should be omitted.
- Fortunately, we have tauri-specta. it allows you to make typescript type and wrapper for
invoke
functions by using rust side types. - So, Introduce it!