mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 21:10:23 +00:00
[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:
committed by
Sheetal Nandi
parent
5a8fffbd91
commit
f173bc7f72
Vendored
+2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user