diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2017-11-23 17:28:07 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2017-12-05 11:27:00 +0100 |
| commit | f1ddc3013bf587bf6f17021c5fd7a51b2e7085ee (patch) | |
| tree | 35f8baed72d6e440b7026d98538247d945b62f09 /app/lib | |
| parent | 35bc9dcf84fbfca216fa2fb23d3d1d9d15bb4915 (diff) | |
| download | mullvadvpn-f1ddc3013bf587bf6f17021c5fd7a51b2e7085ee.tar.xz mullvadvpn-f1ddc3013bf587bf6f17021c5fd7a51b2e7085ee.zip | |
Add RelayLocation annotation
Diffstat (limited to 'app/lib')
| -rw-r--r-- | app/lib/ipc-facade.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/lib/ipc-facade.js b/app/lib/ipc-facade.js index dc9147890c..750b6a3d09 100644 --- a/app/lib/ipc-facade.js +++ b/app/lib/ipc-facade.js @@ -29,6 +29,7 @@ export type BackendState = { }; export type RelayProtocol = 'tcp' | 'udp'; +export type RelayLocation = {| city: [string, string] |} | {| country: string |}; type OpenVpnParameters = { port: 'any' | { only: number }, @@ -41,7 +42,7 @@ type TunnelOptions<TOpenVpnParameters> = { type RelaySettingsNormal<TTunnelOptions> = { location: 'any' | { - only: { city: Array<string> } | { country: string }, + only: RelayLocation, }, tunnel: 'any' | TTunnelOptions, }; |
