Open Bug 1996901 Opened 7 months ago Updated 7 months ago

Fix type errors in preference pane files

Categories

(Firefox :: Settings UI, task, P3)

task

Tracking

()

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 noImplicitAny in our tsconfig.json
  • document.querySelector() returns the Element type rather than HTMLElement, so setting hidden, etc show errors
  • event listeners event param is any (should this be some other type from lib.gecko.dom.ts?)
    • Casting the Element to HTMLElement helps here, but even then "click" listeners set the type to Event not MouseEvent for example
You need to log in before you can comment on or make changes to this bug.