Initial TypeScript type-checking tooling
Categories
(Developer Infrastructure :: Lint and Formatting, task)
Tracking
(firefox125 fixed)
| Tracking | Status | |
|---|---|---|
| firefox125 | --- | fixed |
People
(Reporter: zombie, Assigned: zombie)
References
Details
(Whiteboard: [addons-jira])
Attachments
(4 files)
Splitting off from bug 1872918, as the patch grew in scope since the first version.
| Assignee | ||
Comment 1•2 years ago
|
||
Depends on D197620
| Assignee | ||
Comment 2•2 years ago
|
||
Adding tsconfig.json and a few types/*.d.ts support files:
-
gecko.d.ts contains manual additions and adjustments to generated types,
will be part of the tools/@types typelib when done. -
tspaths.d.ts has resource:// URI paths for all modules in the component,
to be generated globally, and will include all gecko modules later. -
search.d.ts will be the only required file for a new component to start
adopting type checking, and will mostly include component-specific types
that need to be available globally, or that can't be expressed using jsdocs.
Using:
mach ts check toolkit/components/search
Depends on D202122
| Assignee | ||
Comment 3•2 years ago
|
||
- Initial tools/ts setup.
- Mach commands for buidling xpcom related typelibs.
- Mach command for updating the typelib references.
- Mach command for type-checking js projects.
Also included the dom typelib for reference.
Updated•2 years ago
|
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 4•2 years ago
|
||
This check was in early versions of D197618, but got lost in a refactoring.
Apparently xpctest idls don't include [noscript] members, so I added some.
Comment 7•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/df9ee1da64c5
https://hg.mozilla.org/mozilla-central/rev/a7134d792577
Description
•