Skip to content

Commit

Permalink
Fix dialog.save return type (#5373)
Browse files Browse the repository at this point in the history
Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
  • Loading branch information
probablykasper and FabianLars authored Oct 8, 2022
1 parent ecf6a8a commit 8357ce5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/dialog-save-return-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"api": patch
---

Fix `dialog.save` return type
2 changes: 1 addition & 1 deletion tooling/api/src/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 8357ce5

Please sign in to comment.