Skip to content

Commit c67e850

Browse files
committed
fix type of _destroy method
1 parent b11f19c commit c67e850

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/stream/lib/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ export class SerialPortStream<T extends BindingInterface = BindingInterface> ext
483483
* @param err
484484
* @param callback
485485
*/
486-
_destroy(err: Error | undefined, callback: ErrorCallback) {
486+
_destroy(err: Error | null, callback: ErrorCallback) {
487487
debug('_destroy')
488488
if (this.port) {
489489
debug('_destroy', 'releasing port')

0 commit comments

Comments
 (0)