Skip to content

Commit c3e114f

Browse files
committed
chore: fix ts-expect-error
1 parent 03182bd commit c3e114f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cursor/abstract_cursor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ export abstract class AbstractCursor<
803803
private emitClose() {
804804
try {
805805
if (!this.hasEmittedClose && (this[kDocuments].length === 0 || this[kClosed])) {
806-
// @ts-expect-error: not sure..
806+
// @ts-expect-error: CursorEvents is generic so Parameters<CursorEvents["close"]> may not be assignable to `[]`. Not sure how to require extenders do not add parameters.
807807
this.emit('close');
808808
}
809809
} finally {

0 commit comments

Comments
 (0)