Add types to isMouseReport in terminal reattach leak test

Explicitly annotate parameter and return types for the isMouseReport
helper function inside the page.evaluate block.
This commit is contained in:
Jinjing
2026-07-08 22:01:22 -07:00
parent 5907f6e772
commit 057d78b0d6
@@ -154,7 +154,7 @@ test.describe('reattach mouse-mode leak', () => {
const probe = await secondLaunch.page.evaluate(async () => {
// An SGR mouse report is `ESC [ < params (M|m)`; the `ESC [ <` prefix is
// unambiguous, so substring matching avoids a control-char regex.
const isMouseReport = (data) => data.includes('\x1b[<')
const isMouseReport = (data: string): boolean => data.includes('\x1b[<')
const state = window.__store?.getState()
const worktreeId = state?.activeWorktreeId
const tabId =