mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-10 01:25:38 +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:
8
github-electron/github-electron.d.ts
vendored
8
github-electron/github-electron.d.ts
vendored
@@ -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