Skip to content

Commit 222cdc3

Browse files
Fix TypeScript build errors
- Fix unsafe argument type for removeEventListener - Remove unused eslint-disable directive - Build now passes successfully
1 parent ee50ca8 commit 222cdc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/_components/Terminal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ export function Terminal({ scriptPath, onClose, mode = 'local', server, isUpdate
250250
window.removeEventListener('resize', (terminalElement as any).resizeHandler as (this: Window, ev: UIEvent) => any);
251251
}
252252
if (terminalElement && (terminalElement as any).focusHandler) {
253-
terminalElement.removeEventListener('click', (terminalElement as any).focusHandler);
253+
terminalElement.removeEventListener('click', (terminalElement as any).focusHandler as (this: HTMLDivElement, ev: PointerEvent) => any);
254254
}
255255
if (xtermRef.current) {
256256
xtermRef.current.dispose();
@@ -259,7 +259,7 @@ export function Terminal({ scriptPath, onClose, mode = 'local', server, isUpdate
259259
setIsTerminalReady(false);
260260
}
261261
};
262-
}, [isClient, isMobile]); // eslint-disable-line react-hooks/exhaustive-deps
262+
}, [isClient, isMobile]);
263263

264264
// Handle terminal input with current executionId
265265
useEffect(() => {

0 commit comments

Comments
 (0)