diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2022-02-23 14:26:10 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2022-03-14 13:58:44 +0100 |
| commit | 8659f97d48369e3d61aee615bea06ffe30164f83 (patch) | |
| tree | 174564b1865f8c04ee4d637902b5f9cd41a41cc7 /gui/src/shared | |
| parent | 7d37bfd840abfdbbf4ae0f191a3c2afe40f700c9 (diff) | |
| download | mullvadvpn-8659f97d48369e3d61aee615bea06ffe30164f83.tar.xz mullvadvpn-8659f97d48369e3d61aee615bea06ffe30164f83.zip | |
Fix DeviceConfig type to not include undefined
Diffstat (limited to 'gui/src/shared')
| -rw-r--r-- | gui/src/shared/daemon-rpc-types.ts | 12 | ||||
| -rw-r--r-- | gui/src/shared/ipc-schema.ts | 4 |
2 files changed, 7 insertions, 9 deletions
diff --git a/gui/src/shared/daemon-rpc-types.ts b/gui/src/shared/daemon-rpc-types.ts index 9f4e02baa0..b08f375e96 100644 --- a/gui/src/shared/daemon-rpc-types.ts +++ b/gui/src/shared/daemon-rpc-types.ts @@ -323,16 +323,14 @@ export interface IAppVersionInfo { } export interface IDeviceEvent { - deviceConfig: DeviceConfig; + deviceConfig?: IDeviceConfig; remote?: boolean; } -export type DeviceConfig = - | undefined - | { - accountToken: AccountToken; - device?: IDevice; - }; +export interface IDeviceConfig { + accountToken: AccountToken; + device?: IDevice; +} export interface IDevice { id: string; diff --git a/gui/src/shared/ipc-schema.ts b/gui/src/shared/ipc-schema.ts index 89dd0b37b6..29d00bb1c4 100644 --- a/gui/src/shared/ipc-schema.ts +++ b/gui/src/shared/ipc-schema.ts @@ -7,7 +7,7 @@ import { IAccountData, IAppVersionInfo, IDevice, - DeviceConfig, + IDeviceConfig, IDeviceRemoval, IDnsOptions, ILocation, @@ -54,7 +54,7 @@ export interface IAppStateSnapshot { accountHistory?: AccountToken; tunnelState: TunnelState; settings: ISettings; - deviceConfig: DeviceConfig; + deviceConfig?: IDeviceConfig; relayListPair: IRelayListPair; currentVersion: ICurrentAppVersionInfo; upgradeVersion: IAppVersionInfo; |
