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.
_destroy
1 parent b11f19c commit c67e850Copy full SHA for c67e850
packages/stream/lib/index.ts
@@ -483,7 +483,7 @@ export class SerialPortStream<T extends BindingInterface = BindingInterface> ext
483
* @param err
484
* @param callback
485
*/
486
- _destroy(err: Error | undefined, callback: ErrorCallback) {
+ _destroy(err: Error | null, callback: ErrorCallback) {
487
debug('_destroy')
488
if (this.port) {
489
debug('_destroy', 'releasing port')
0 commit comments