mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
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:
1 parent
fe563dff34
commit
6f503d7925
1 file changed
+6
-2
Vendored
+6
-2
@@ -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 .
|
||||
|
||||
Reference in new issue
Block a user