feat(history): update the open view live
This commit is contained in:
@@ -79,6 +79,7 @@ export const IPC_CHANNELS = {
|
||||
EXTRACT_NOW: "queue:extract-now",
|
||||
RESET_PACKAGE: "queue:reset-package",
|
||||
GET_HISTORY: "history:get",
|
||||
HISTORY_ENTRY_ADDED: "history:entry-added",
|
||||
CLEAR_HISTORY: "history:clear",
|
||||
REMOVE_HISTORY_ENTRY: "history:remove-entry",
|
||||
REVEAL_HISTORY_ENTRY: "history:reveal-entry",
|
||||
|
||||
@@ -142,6 +142,7 @@ export interface ElectronApi {
|
||||
extractNow: (packageId: string) => Promise<void>;
|
||||
resetPackage: (packageId: string) => Promise<void>;
|
||||
getHistory: () => Promise<HistoryEntry[]>;
|
||||
onHistoryEntryAdded: (callback: (entry: HistoryEntry) => void) => () => void;
|
||||
clearHistory: () => Promise<void>;
|
||||
removeHistoryEntry: (entryId: string) => Promise<void>;
|
||||
revealHistoryEntry: (entryId: string) => Promise<HistoryRevealResult>;
|
||||
|
||||
Reference in New Issue
Block a user