Skip to content

Commit c7de157

Browse files
committed
fix: make the properties of monitor optional in compat
1 parent 141778f commit c7de157

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ class Socket extends EventEmitter {
374374
return this._socket.closed
375375
}
376376

377-
monitor(interval: number, num: number) {
377+
monitor(interval?: number, num?: number) {
378378
this._count = count++
379379

380380
/* eslint-disable-next-line no-unused-expressions */

0 commit comments

Comments
 (0)