Parcourir la source

null type added (#3900)

Anish Prashun il y a 3 ans
Parent
commit
822b038c3e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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)
   }