Skip to content

chore(strict): P28 chatgpt-model ts-check + typedefs (DOM tsconfig)#29

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

chore(strict): P28 chatgpt-model ts-check + typedefs (DOM tsconfig)#29
lidge-jun merged 1 commit into
mainfrom
chore/strict-migration-p28

Conversation

@lidge-jun
Copy link
Copy Markdown
Owner

VERDICT-B per-file ts-check on web-ai/chatgpt-model.mjs (603 lines, pure leaf). Goes into tsconfig.checkjs-dom.json because page.evaluate callbacks reference DOM types.

Changes: // @ts-check, ModelChoice/EffortChoice unions, Record<> typings on alias/option/effort tables, JSDoc on 7 exports + 14 helpers, HTMLElement casts inside page.evaluate callbacks for innerText.

No runtime change: no Boolean/String/Number wrappers, no new ?., no fallbacks added/removed.

Gates: tsc -p tsconfig.checkjs-dom.json OK, tsc -p tsconfig.checkjs.json OK, tsc --noEmit OK, check:strict-baseline OK.

Annotate web-ai/chatgpt-model.mjs (603 lines) with // @ts-check, ModelChoice
and EffortChoice unions, Record types on aliases/options/efforts, full JSDoc
on 7 exports + 14 helpers, and HTMLElement casts inside page.evaluate
callbacks. Goes in tsconfig.checkjs-dom.json. No runtime change.

 contract-audit / action-intent / target-resolver
once chatgpt-composer is annotated next.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@lidge-jun lidge-jun merged commit 06e6bd9 into main May 5, 2026
2 checks passed
@lidge-jun lidge-jun deleted the chore/strict-migration-p28 branch May 6, 2026 01:44
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