Skip to main content

Module ShowSaveDialog

Expand description

Wire methods: nativeHost:showSaveDialog, UserInterface.ShowSaveDialog.

Both surface a blocking save-file dialog via tauri_plugin_dialog. The difference is in the return shape:

  • nativeHost:showSaveDialog{ canceled: bool, filePath?: string }
  • UserInterface.ShowSaveDialog → bare path string (or null) so Wind’s typeof Result === "string" guard finds a string value directly.

Functions§

NativeShowSaveDialog
nativeHost:showSaveDialog - returns { canceled, filePath }.
UserInterfaceShowSaveDialog
UserInterface.ShowSaveDialog - returns bare path string or null. Wind’s Files/Live.ts calls this and checks typeof Result === "string".