From f173bc7f72e4ae23536c2e3091742342a759b6cf Mon Sep 17 00:00:00 2001 From: Pierantonio Cangianiello Date: Tue, 30 Jan 2018 20:37:40 +0100 Subject: [PATCH] [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 --- types/serialport/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/serialport/index.d.ts b/types/serialport/index.d.ts index 74a4f90e42..84b5790fd4 100644 --- a/types/serialport/index.d.ts +++ b/types/serialport/index.d.ts @@ -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; } declare namespace SerialPort {