Experiment adding basic TypeScript annotations
Categories
(Remote Protocol :: Agent, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: ato, Unassigned)
Details
We should explore annotating the remote debugging protocol JavaScript code with TypeScript to increase safety. We have had a series of bugs that could’ve been prevented with a more rigorous type system.
TypeScript is a so-called gradual type system which means we don’t have to adopt it wholesale for the entire code base.
The new performance backend in DevTools already uses TypeScript in-tree, although it is not yet hooked up to any linting tasks, and the TypeScript linter must be run manually:
https://searchfox.org/mozilla-central/source/devtools/client/performance-new
We can set up a manual source-task linting task for our own purposes and hook it up to ./mach remote lint or some such sub-task.
| Reporter | ||
Updated•6 years ago
|
Comment 1•5 years ago
|
||
We have a more detailed bug filed for this as bug 1713640.
Description
•