From 0eb88e69d7d77466eff7fda49340fac94ec2551a Mon Sep 17 00:00:00 2001 From: Bogdan Radacina Date: Thu, 7 Jan 2016 20:19:49 +1100 Subject: [PATCH] showOpenDialog returns string[] The showOpenDialog() function returns string[] as per https://github.com/atom/electron/blob/master/docs/api/dialog.md --- github-electron/github-electron.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github-electron/github-electron.d.ts b/github-electron/github-electron.d.ts index b1df3bccce..290bf06aa2 100644 --- a/github-electron/github-electron.d.ts +++ b/github-electron/github-electron.d.ts @@ -1157,11 +1157,11 @@ declare module GitHubElectron { browserWindow?: BrowserWindow, options?: OpenDialogOptions, callback?: (fileNames: string[]) => void - ): void; + ): string[]; export function showOpenDialog( options?: OpenDialogOptions, callback?: (fileNames: string[]) => void - ): void; + ): string[]; interface OpenDialogOptions { title?: string;