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;