mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
Fix dialog.save return type (#5373)
Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
This commit is contained in:
5
.changes/dialog-save-return-fix.md
Normal file
5
.changes/dialog-save-return-fix.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"api": patch
|
||||
---
|
||||
|
||||
Fix `dialog.save` return type
|
||||
@@ -189,7 +189,7 @@ async function open(
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
async function save(options: SaveDialogOptions = {}): Promise<string> {
|
||||
async function save(options: SaveDialogOptions = {}): Promise<string | null> {
|
||||
if (typeof options === 'object') {
|
||||
Object.freeze(options)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user