Update and extend the docs the TypeScript agent skills point to
Categories
(Developer Infrastructure :: Source Documentation, task)
Tracking
(firefox163 fixed)
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: dao, Assigned: dao)
References
(Blocks 1 open bug)
Details
Attachments
(7 external files, 1 obsolete file)
Document what someone needs to enable and maintain TypeScript checking for a component, and correct claims that have gone stale:
index.mdandlinters/typescript.mdstill describe the linter as tier 3; it has run at tier 2 since bug 1975512.- Add
typescript/enabling.md: setting up a component'stsconfig.json, thetypes/*.tsdeclarations convention, landing with anexcludelist and shrinking it, and registering the project with the linter. linters/typescript.md: which project checks a given path, and when the linter reports success without checking anything.bestPractices.mdandupdatingTypes.md: JSDoc that tsc reads differently than it looks, typing custom elements, and regenerating module paths.- Add a
browser/docs/page on how the browser window's scripts load, and which kind of module a converted script becomes: a per-window.mjsfor a custom element, a.sys.mjsfor other code.
The bestPractices.md note advising against declareLazy stays until bug 1992437 moves it to ChromeUtils. The TypeScript rollouts depend on declareLazy, which is what gives a module's lazy imports types, so the skills will ask for it regardless.
The TypeScript agent skills in bug 2088790 will point to these pages.
| Assignee | ||
Comment 1•26 days ago
|
||
Updated•26 days ago
|
| Assignee | ||
Comment 2•26 days ago
|
||
| Assignee | ||
Comment 3•26 days ago
|
||
| Assignee | ||
Comment 4•26 days ago
|
||
| Assignee | ||
Comment 5•26 days ago
|
||
| Assignee | ||
Comment 6•26 days ago
|
||
| Assignee | ||
Updated•26 days ago
|
Updated•25 days ago
|
| Assignee | ||
Comment 8•25 days ago
|
||
A chrome probe backs the custom element note: a system module class extending its own HTMLElement passes customElements.define but never upgrades, and its constructor throws NS_ERROR_UNEXPECTED, while a class built from the window's HTMLElement or MozXULElement upgrades. The other facts were checked in the source at this commit.
| Assignee | ||
Updated•25 days ago
|
Comment 9•25 days ago
|
||
| bugherder | ||
| Assignee | ||
Comment 10•24 days ago
|
||
Comment 11•10 days ago
|
||
Comment 12•10 days ago
|
||
| bugherder | ||
Updated•9 days ago
|
| Assignee | ||
Updated•7 days ago
|
Comment 13•6 days ago
|
||
Comment 14•6 days ago
|
||
| bugherder | ||
Description
•