Open
Bug 1996901
Opened 7 months ago
Updated 7 months ago
Fix type errors in preference pane files
Categories
(Firefox :: Settings UI, task, P3)
Firefox
Settings UI
Tracking
()
NEW
People
(Reporter: mstriemer, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [recomp])
We have some remaining TS errors in preferences.js, main.js, privacy.js, etc. Let's fix those up.
There may be some project/directory-level changes that could solve a lot of these:
- Many errors are around using
noImplicitAnyin our tsconfig.json document.querySelector()returns theElementtype rather thanHTMLElement, so settinghidden, etc show errors- event listeners event param is
any(should this be some other type from lib.gecko.dom.ts?)- Casting the
ElementtoHTMLElementhelps here, but even then"click"listeners set the type toEventnotMouseEventfor example
- Casting the
Updated•7 months ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•