[meta] Add TypeScript type-checking skills and update related in-tree TypeScript documentation
Categories
(Developer Infrastructure :: AI for Development, task)
Tracking
(Not tracked)
People
(Reporter: dao, Assigned: dao)
References
(Depends on 2 open bugs, Blocks 1 open bug)
Details
(Keywords: meta)
Track adding agent skills for type-checking Firefox JS with TypeScript: measuring and enabling checkJs coverage for a directory, fixing individual tsc errors, typing custom elements that tsc cannot see, and checking whether a patch type-checks. This also covers what the skills rely on: correcting and extending the TypeScript docs under docs/code-quality/, writing a page on how the browser window's scripts load, and adding mach commands that summarize a project's type-check errors, compare them with a saved run and measure how much of each module its JSDoc types.
The skills started from what the address bar's TypeScript rollout (bug 1964610) established, and were refined while using them to roll TypeScript out to the tab browser (tabbrowser-ts) and session restore (sessionstore-ts).
This is a parallel, independent effort to bug 2041698 and bug 2051960. We will look into merging the two once that work produces a patch.
Scope
In scope: the skills in .claude/skills/ and the in-tree docs and mach commands they rely on. Rolling TypeScript out to further components is out of scope, and so is turning the skills' mechanical rules into lint checks, which follows the landing.
Progress
| Phase | Goal | Bug | Status |
|---|---|---|---|
| 1a | Update and extend the TypeScript docs the skills point to | bug 2088821 | DONE |
| 1b | Run the TypeScript lint job when only a project's tsconfig.json changes |
bug 2088880 | DONE |
| 1c | Report errors in a project's tsconfig.json, such as an include list that matches no files |
bug 2088944 | DONE |
| 2a | Add a mach command that summarizes a project's type-check errors and compares them with a saved run |
bug 2089610 | DONE |
| 2b | Fix mach ts check hanging when run from outside the source tree |
bug 2089658 | DONE |
| 2c | Add a mach command that measures how much of each module its JSDoc types |
bug 2089817 | DONE |
| 2d | Generate TypeScript declarations for the browser window's globals | bug 2090000 | IN REVIEW |
| 3a | Tell the documentation skill how to fix a generated API page that comes out wrong | bug 2071292 | DONE |
| 3b | Update the documentation skill's notes for the landed jsdoc plugins | bug 2089077 | DONE |
| 3c | Add the skills to the tree, tested on cases they weren't written from | bug 2089016 | IN REVIEW |
| Assignee | ||
Updated•24 days ago
|
| Assignee | ||
Updated•23 days ago
|
Description
•