From 708c1f74b507723939c191eaa3f7fef907739a9a Mon Sep 17 00:00:00 2001 From: Nathan Kunicki Date: Wed, 20 Jun 2018 14:41:02 +0100 Subject: [PATCH] Removed all any ts types --- hub.ts | 4 ++-- lpf2.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hub.ts b/hub.ts index e30106e..7355cab 100644 --- a/hub.ts +++ b/hub.ts @@ -20,8 +20,8 @@ export class Hub extends EventEmitter { public type: Consts.Hubs = Consts.Hubs.UNKNOWN; public uuid: string; - protected _ports: any = {}; - protected _characteristics: any = {}; + protected _ports: {[port: string]: Port} = {}; + protected _characteristics: {[uuid: string]: Characteristic} = {}; private _peripheral: Peripheral; private _rssi: number = -100; diff --git a/lpf2.ts b/lpf2.ts index 1f6c79a..a74893b 100644 --- a/lpf2.ts +++ b/lpf2.ts @@ -35,7 +35,7 @@ export class LPF2 extends EventEmitter { public autoSubscribe: boolean = true; - private _connectedDevices: any = {}; + private _connectedDevices: {[uuid: string]: Hub} = {}; constructor () {