From a912b2d3b6948ff8d113c1578ec416c8ea7efe08 Mon Sep 17 00:00:00 2001 From: Teagan Durtschi Date: Sun, 21 Oct 2018 09:49:05 -0400 Subject: [PATCH] Add static property 'accessile' to onoff.Gpio class --- types/onoff/index.d.ts | 2 ++ types/onoff/onoff-tests.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/types/onoff/index.d.ts b/types/onoff/index.d.ts index 55701976a9..f4eba3ffb6 100644 --- a/types/onoff/index.d.ts +++ b/types/onoff/index.d.ts @@ -28,6 +28,8 @@ declare namespace __ONOFF { options?: GpioOptions ); + static accessible: boolean; + gpio: number; gpioPath: string; opts: GpioOptions; diff --git a/types/onoff/onoff-tests.ts b/types/onoff/onoff-tests.ts index 21b47e7f99..776b577348 100644 --- a/types/onoff/onoff-tests.ts +++ b/types/onoff/onoff-tests.ts @@ -14,3 +14,5 @@ setTimeout(function() { led.writeSync(0); led.unexport(); }, 2000); + +var accessible:boolean = onoff.Gpio.accessible;