mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #26706 from drew-y/master
@types/serialport: Make the callback of the "on" method non-optional
This commit is contained in:
Vendored
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user