mirror of
https://github.com/stablyai/orca.git
synced 2026-10-17 00:03:08 +00:00
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:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user