fix: docs/api/dialog.md: fix typo (#18392)

This commit is contained in:
Lucas Gabriel Schneider 2019-05-23 00:22:51 -03:00 committed by Shelley Vohr
parent 8f200595ba
commit 72b1c01836

View file

@ -113,7 +113,7 @@ dialog.showOpenDialogSync(mainWindow, {
* `securityScopedBookmarks` Boolean (optional) _masOS_ _mas_ - Create [security scoped bookmarks](https://developer.apple.com/library/content/documentation/Security/Conceptual/AppSandboxDesignGuide/AppSandboxInDepth/AppSandboxInDepth.html#//apple_ref/doc/uid/TP40011183-CH3-SW16) when packaged for the Mac App Store.
* `callback` Function (optional)
Returns `Promise<Object>` - Resolve wih an object containing the following:
Returns `Promise<Object>` - Resolve with an object containing the following:
* `canceled` Boolean - whether or not the dialog was canceled.
* `filePaths` String[] (optional) - An array of file paths chosen by the user. If the dialog is cancelled this will be an empty array.