oscartbeaumont / tauri-specta

Completely typesafe Tauri commands
MIT License
291 stars 27 forks source link

Input casting/type #3

Closed probablykasper closed 1 year ago

probablykasper commented 1 year ago

The invoke function casts falsy values to undefined. This means values like 0 and '' turn into undefined.

api.invoke(key, input || undefined);
probablykasper commented 1 year ago

nvm, this doesn't have any effect since the input type only accepts null | {...}