diff --git a/serialport/index.d.ts b/serialport/index.d.ts index d94ab9d79f..5b284cc669 100644 --- a/serialport/index.d.ts +++ b/serialport/index.d.ts @@ -5,7 +5,8 @@ declare module 'serialport' { class SerialPort { - constructor(path: string, options?: Object, openImmediately?: boolean, callback?: (err: any) => void) + //openImmediately already removed in 4.0.7 + constructor(path: string, options?: Object, callback?: (err: any) => void) isOpen(): boolean; on(event: string, callback?: (data?: any) => void): void; open(callback?: (err: any) => void): void;