Browse Source

null type added (#3900)

Anish Prashun 3 years ago
parent
commit
822b038c3e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tooling/api/src/dialog.ts

+ 1 - 1
tooling/api/src/dialog.ts

@@ -88,7 +88,7 @@ interface SaveDialogOptions {
  */
 async function open(
   options: OpenDialogOptions = {}
-): Promise<string | string[]> {
+): Promise<null | string | string[]> {
   if (typeof options === 'object') {
     Object.freeze(options)
   }