mirror of
https://github.com/chirimen-oh/node-web-gpio.git
synced 2025-01-18 16:08:00 +00:00
docs: GPIOPortMap
This commit is contained in:
parent
95c5572819
commit
46e03bda46
3 changed files with 9 additions and 0 deletions
3
index.d.ts
vendored
3
index.d.ts
vendored
|
@ -28,6 +28,9 @@ export declare class GPIOAccess extends EventEmitter {
|
|||
*/
|
||||
unexportAll(): Promise<void>;
|
||||
}
|
||||
/**
|
||||
* Different from Web GPIO API specification.
|
||||
*/
|
||||
export declare class GPIOPortMap extends Map<PortNumber, GPIOPort> {
|
||||
}
|
||||
export declare class GPIOPort extends EventEmitter {
|
||||
|
|
3
index.js
3
index.js
|
@ -41,6 +41,9 @@ class GPIOAccess extends events_1.EventEmitter {
|
|||
}
|
||||
}
|
||||
exports.GPIOAccess = GPIOAccess;
|
||||
/**
|
||||
* Different from Web GPIO API specification.
|
||||
*/
|
||||
class GPIOPortMap extends Map {
|
||||
}
|
||||
exports.GPIOPortMap = GPIOPortMap;
|
||||
|
|
3
index.ts
3
index.ts
|
@ -79,6 +79,9 @@ export class GPIOAccess extends EventEmitter {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Different from Web GPIO API specification.
|
||||
*/
|
||||
export class GPIOPortMap extends Map<PortNumber, GPIOPort> {}
|
||||
|
||||
export class GPIOPort extends EventEmitter {
|
||||
|
|
Loading…
Add table
Reference in a new issue