[serialport] Add SerialPort.list() (#23284)

* Add SerialPort.list()

Adding `list()` static method to `SerialPort` class. See [here](https://github.com/node-serialport/node-serialport/blob/master/lib/serialport.js#L612)

* Update index.d.ts
This commit is contained in:
Pierantonio Cangianiello
2018-01-30 11:37:40 -08:00
committed by Sheetal Nandi
parent 5a8fffbd91
commit f173bc7f72
+2
View File
@@ -34,6 +34,8 @@ declare class SerialPort extends Stream.Duplex {
on(event: string, callback?: (data?: any) => void): this;
static Binding: SerialPort.BaseBinding;
static list(): Promise<any>;
}
declare namespace SerialPort {