Fix dialog.save return type (#5373)

Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
This commit is contained in:
Kasper
2022-10-08 20:59:13 +02:00
committed by GitHub
parent ecf6a8ad10
commit 8357ce5b2e
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"api": patch
---
Fix `dialog.save` return type

View File

@@ -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)
}