mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-10-23 03:31:56 +00:00
main: Avoid object type.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -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
2
typings.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user