Skip to content

Commit 8357ce5

Browse files
kasper9nFabianLars
andauthored
Fix dialog.save return type (#5373)
Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
1 parent ecf6a8a commit 8357ce5

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changes/dialog-save-return-fix.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"api": patch
3+
---
4+
5+
Fix `dialog.save` return type

tooling/api/src/dialog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ async function open(
189189
*
190190
* @since 1.0.0
191191
*/
192-
async function save(options: SaveDialogOptions = {}): Promise<string> {
192+
async function save(options: SaveDialogOptions = {}): Promise<string | null> {
193193
if (typeof options === 'object') {
194194
Object.freeze(options)
195195
}

0 commit comments

Comments
 (0)