Skip to content

P47: strict checkjs for web-ai/grok-live.mjs#48

Merged
lidge-jun merged 1 commit into
mainfrom
chore/strict-migration-p47
May 5, 2026
Merged

P47: strict checkjs for web-ai/grok-live.mjs#48
lidge-jun merged 1 commit into
mainfrom
chore/strict-migration-p47

Conversation

@lidge-jun
Copy link
Copy Markdown
Owner

VERDICT-B per-file // @ts-check + JSDoc; appended to tsconfig.checkjs-dom.json. No runtime change. 4 gates green.

VERDICT-B (per-file // @ts-check + JSDoc, no runtime change).

- Add // @ts-check + typedef block (Deps/Input/Page = any) + JSDoc on 18 functions
- Inline /** @type {any} */ casts on page.evaluate callbacks and
  imports whose existing types do not match grok-live usage
- Append web-ai/grok-live.mjs to tsconfig.checkjs-dom.json

All 4 gates green: tsc-dom, tsc-node, node --check, npm test.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@lidge-jun lidge-jun merged commit 7e28f7c into main May 5, 2026
2 checks passed
@lidge-jun lidge-jun deleted the chore/strict-migration-p47 branch May 5, 2026 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant