main: Avoid object type.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-07-01 14:53:10 -07:00
parent cf9d0c8aa2
commit b207ee57de
2 changed files with 2 additions and 2 deletions

View File

@@ -357,7 +357,7 @@ ${error}`
page.downloadURL(url);
page.session.once('will-download', async (_event: Event, item) => {
if (ConfigUtil.getConfigItem('promptDownload', false)) {
const showDialogOptions: object = {
const showDialogOptions: electron.SaveDialogOptions = {
defaultPath: path.join(downloadPath, item.getFilename())
};
item.setSaveDialogOptions(showDialogOptions);

2
typings.d.ts vendored
View File

@@ -9,7 +9,7 @@ declare module '@electron-elements/send-feedback' {
buttonLabel: string;
loaderSuccessText: string;
logs: string[];
useReporter: (reporter: string, data: object) => void;
useReporter: (reporter: string, data: Record<string, unknown>) => void;
}
export = SendFeedback;
}