Merge pull request #26706 from drew-y/master

@types/serialport: Make the callback of the "on" method non-optional
This commit is contained in:
Paul van Brenk
2018-06-25 13:39:08 -07:00
committed by GitHub
+1 -1
View File
@@ -36,7 +36,7 @@ declare class SerialPort extends Stream.Duplex {
pause(): this;
resume(): this;
on(event: string, callback?: (data?: any) => void): this;
on(event: string, callback: (data?: any) => void): this;
static Binding: SerialPort.BaseBinding;