docs: GPIOPortMap

This commit is contained in:
Nebel 2019-10-16 00:27:50 +09:00
parent 95c5572819
commit 46e03bda46
3 changed files with 9 additions and 0 deletions

3
index.d.ts vendored
View file

@ -28,6 +28,9 @@ export declare class GPIOAccess extends EventEmitter {
*/ */
unexportAll(): Promise<void>; unexportAll(): Promise<void>;
} }
/**
* Different from Web GPIO API specification.
*/
export declare class GPIOPortMap extends Map<PortNumber, GPIOPort> { export declare class GPIOPortMap extends Map<PortNumber, GPIOPort> {
} }
export declare class GPIOPort extends EventEmitter { export declare class GPIOPort extends EventEmitter {

View file

@ -41,6 +41,9 @@ class GPIOAccess extends events_1.EventEmitter {
} }
} }
exports.GPIOAccess = GPIOAccess; exports.GPIOAccess = GPIOAccess;
/**
* Different from Web GPIO API specification.
*/
class GPIOPortMap extends Map { class GPIOPortMap extends Map {
} }
exports.GPIOPortMap = GPIOPortMap; exports.GPIOPortMap = GPIOPortMap;

View file

@ -79,6 +79,9 @@ export class GPIOAccess extends EventEmitter {
} }
} }
/**
* Different from Web GPIO API specification.
*/
export class GPIOPortMap extends Map<PortNumber, GPIOPort> {} export class GPIOPortMap extends Map<PortNumber, GPIOPort> {}
export class GPIOPort extends EventEmitter { export class GPIOPort extends EventEmitter {