diff options
| author | Emīls <emils@mullvad.net> | 2020-08-19 11:55:56 +0100 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2020-08-20 14:41:42 +0200 |
| commit | 5ff7f8909b8f478eb989c2f8a544d8cd76a636d6 (patch) | |
| tree | 403879d523d7cdef06903c696c8c3469c97c7039 | |
| parent | f30f2c84e6ebcceed3408358c8df4a2239c0de71 (diff) | |
| download | mullvadvpn-5ff7f8909b8f478eb989c2f8a544d8cd76a636d6.tar.xz mullvadvpn-5ff7f8909b8f478eb989c2f8a544d8cd76a636d6.zip | |
Improve typesafety in RPC code
| -rw-r--r-- | gui/src/main/daemon-rpc.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gui/src/main/daemon-rpc.ts b/gui/src/main/daemon-rpc.ts index 64930c734c..ebe4abdbe7 100644 --- a/gui/src/main/daemon-rpc.ts +++ b/gui/src/main/daemon-rpc.ts @@ -132,8 +132,7 @@ export class DaemonRpc { private isConnected = false; private connectionObservers: ConnectionObserver[] = []; private nextSubscriptionId = 0; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - private subscriptions: Map<number, grpc.ClientReadableStream<any>> = new Map(); + private subscriptions: Map<number, grpc.ClientReadableStream<grpcTypes.DaemonEvent>> = new Map(); private reconnectionTimeout?: number; private subscriptionId(): number { |
