From c65b03303be3c2cf5ca05f982c918907fb5ebc2a Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Fri, 8 Nov 2019 16:27:07 +0900 Subject: [PATCH] yarn build --- index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.d.ts b/index.d.ts index 6e57ee6..fbfe49b 100644 --- a/index.d.ts +++ b/index.d.ts @@ -4,7 +4,7 @@ declare type I2CSlaveAddress = number; export declare class I2CAccess { private readonly _ports; constructor(ports?: I2CPortMap); - readonly ports: I2CPortMap; + get ports(): I2CPortMap; } /** * Different from Web GPIO API specification. @@ -15,8 +15,8 @@ export declare class I2CPortMap extends Map { export declare class I2CPort { private readonly _portNumber; constructor(portNumber: PortNumber); - readonly portNumber: number; - readonly portName: string; + get portNumber(): number; + get portName(): string; open(slaveAddress: I2CSlaveAddress): Promise; } export interface I2CSlaveDevice {