Fix showSaveDialog method signature

showSaveDialog() filters have the same format as showOpenDialog() filters. It also returns a string containing the file name

As per:
https://github.com/atom/electron/blob/master/docs/api/dialog.md
This commit is contained in:
bradacina
2016-01-03 12:06:08 +11:00
parent fe563dff34
commit 6f503d7925

View File

@@ -1193,8 +1193,12 @@ declare module GitHubElectron {
/**
* File types that can be displayed, see dialog.showOpenDialog for an example.
*/
filters?: string[];
}, callback?: (fileName: string) => void): void;
filters?: {
name: string;
extensions: string[];
}[]
}, callback?: (fileName: string) => void): string;
/**
* Shows a message box. It will block until the message box is closed. It returns .