summaryrefslogtreecommitdiffhomepage
path: root/gui/src/shared
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src/shared')
-rw-r--r--gui/src/shared/ipc-schema.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/gui/src/shared/ipc-schema.ts b/gui/src/shared/ipc-schema.ts
index 5cc347e51e..01c5c53a95 100644
--- a/gui/src/shared/ipc-schema.ts
+++ b/gui/src/shared/ipc-schema.ts
@@ -44,7 +44,7 @@ export interface IAppStateSnapshot {
isConnected: boolean;
autoStart: boolean;
accountData?: IAccountData;
- accountHistory: AccountToken[];
+ accountHistory?: AccountToken;
tunnelState: TunnelState;
settings: ISettings;
location?: ILocation;
@@ -165,8 +165,8 @@ export const ipcSchema = {
submitVoucher: invoke<string, VoucherResponse>(),
},
accountHistory: {
- '': notifyRenderer<AccountToken[]>(),
- removeItem: invoke<AccountToken, void>(),
+ '': notifyRenderer<AccountToken | undefined>(),
+ clear: invoke<void, void>(),
},
autoStart: {
'': notifyRenderer<boolean>(),
@@ -183,7 +183,7 @@ export const ipcSchema = {
launchApplication: invoke<ILinuxSplitTunnelingApplication | string, LaunchApplicationResult>(),
},
problemReport: {
- collectLogs: invoke<string[], string>(),
+ collectLogs: invoke<string | undefined, string>(),
sendReport: invoke<{ email: string; message: string; savedReportId: string }, void>(),
viewLog: invoke<string, string>(),
},