We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffd3fa2 commit d67e254Copy full SHA for d67e254
packages/stream/lib/index.ts
@@ -246,7 +246,7 @@ export class SerialPortStream<T extends BindingInterface = BindingInterface> ext
246
return super.write(data, encoding, callback)
247
}
248
249
- _write(data: Buffer, encoding: BufferEncoding | undefined, callback: (error: Error | null) => void) {
+ _write(data: Buffer, encoding: BufferEncoding, callback: (error: Error | null) => void) {
250
if (!this.isOpen || !this.port) {
251
this.once('open', () => {
252
this._write(data, encoding, callback)
0 commit comments