yarn build

This commit is contained in:
Nebel 2019-11-08 16:27:07 +09:00
parent 7e69bf7655
commit c65b03303b

6
index.d.ts vendored
View file

@ -4,7 +4,7 @@ declare type I2CSlaveAddress = number;
export declare class I2CAccess { export declare class I2CAccess {
private readonly _ports; private readonly _ports;
constructor(ports?: I2CPortMap); constructor(ports?: I2CPortMap);
readonly ports: I2CPortMap; get ports(): I2CPortMap;
} }
/** /**
* Different from Web GPIO API specification. * Different from Web GPIO API specification.
@ -15,8 +15,8 @@ export declare class I2CPortMap extends Map<PortNumber, I2CPort> {
export declare class I2CPort { export declare class I2CPort {
private readonly _portNumber; private readonly _portNumber;
constructor(portNumber: PortNumber); constructor(portNumber: PortNumber);
readonly portNumber: number; get portNumber(): number;
readonly portName: string; get portName(): string;
open(slaveAddress: I2CSlaveAddress): Promise<I2CSlaveDevice>; open(slaveAddress: I2CSlaveAddress): Promise<I2CSlaveDevice>;
} }
export interface I2CSlaveDevice { export interface I2CSlaveDevice {