From 45e5f494c77412b9b534ae2d94d50d7662ddfc48 Mon Sep 17 00:00:00 2001 From: erikma Date: Thu, 20 Sep 2018 20:28:17 -0700 Subject: [PATCH] Resolve PR comments --- types/pigpio-dht/index.d.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/types/pigpio-dht/index.d.ts b/types/pigpio-dht/index.d.ts index 54227f0190..6f4d974128 100644 --- a/types/pigpio-dht/index.d.ts +++ b/types/pigpio-dht/index.d.ts @@ -10,18 +10,11 @@ export = dht; /** * Returns a new DHT object for accessing a DHT11 or DHT22/AM2302 via GPIO. * @param gpio an unsigned integer specifying the GPIO number - * @param type A DhtType enumeration value for the sensor type + * @param type 11 to initialize for reading a DHT11, 22 for DHT22/AM2302 */ -declare function dht(gpio: number, type: dht.DhtType | number): dht.Dht; +declare function dht(gpio: number, type: number): dht.Dht; declare namespace dht { - /** The various sensor types supported by pigpio-dht. */ - enum DhtType { - DHT11 = 11, - DHT22 = 22, - AM2302 = 22, - } - interface Dht extends NodeJS.EventEmitter { /** * Starts reading the sensor value. Emits the 'start' event before starting,