Skip to content
This repository was archived by the owner on Jun 26, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/infrastructure/ipcChannels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ipcMain, ipcRenderer } from 'electron';

import type { IPC_CHANNELS, ProgressStatus } from '@/constants';
import type { InstallStageInfo } from '@/main-process/installStages';
import type { DownloadState } from '@/models/DownloadManager';
import type { DownloadState, StartDownloadResult } from '@/models/DownloadManager';
import type {
DownloadProgressUpdate,
ElectronContextMenuOptions,
Expand Down Expand Up @@ -264,21 +264,21 @@ export interface IpcChannels {

[IPC_CHANNELS.START_DOWNLOAD]: {
params: [details: { url: string; path: string; filename: string }];
return: boolean;
return: StartDownloadResult;
};

[IPC_CHANNELS.PAUSE_DOWNLOAD]: {
params: [url: string];
params: [downloadId: string];
return: void;
};

[IPC_CHANNELS.RESUME_DOWNLOAD]: {
params: [url: string];
params: [downloadId: string];
return: void;
};

[IPC_CHANNELS.CANCEL_DOWNLOAD]: {
params: [url: string];
params: [downloadId: string];
return: void;
};

Expand Down
2 changes: 1 addition & 1 deletion src/main_types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export * from './constants';
export type { DownloadState } from './models/DownloadManager';
export type { DownloadState, StartDownloadResult } from './models/DownloadManager';
export type { InstallStageInfo, InstallStageName } from './main-process/installStages';
export type {
ElectronAPI,
Expand Down
Loading
Loading