From d8cf9e03e9907a496f23e7fd2a6db060867f96e2 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Fri, 8 Nov 2019 16:29:10 +0900 Subject: [PATCH] yarn build --- index.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/index.d.ts b/index.d.ts index b761d8f..a5db288 100644 --- a/index.d.ts +++ b/index.d.ts @@ -16,7 +16,7 @@ export declare class GPIOAccess extends EventEmitter { private readonly _ports; onchange: GPIOChangeEventHandler | undefined; constructor(ports?: GPIOPortMap); - readonly ports: GPIOPortMap; + get ports(): GPIOPortMap; /** * Unexport all exported GPIO ports. */ @@ -36,11 +36,11 @@ export declare class GPIOPort extends EventEmitter { private _timeout; onchange: GPIOChangeEventHandler | undefined; constructor(portNumber: PortNumber); - readonly portNumber: PortNumber; - readonly portName: PortName; - readonly pinName: PinName; - readonly direction: DirectionMode; - readonly exported: boolean; + get portNumber(): PortNumber; + get portName(): PortName; + get pinName(): PinName; + get direction(): DirectionMode; + get exported(): boolean; export(direction: DirectionMode): Promise; unexport(): Promise; read(): Promise;