Closed Bug 1945472 Opened 7 months ago Closed 6 months ago

TypeScript errors in lib.gecko.dom.d.ts about Interface 'HTMLScriptElement' incorrectly extends interface 'HTMLElement'

Categories

(Developer Infrastructure :: Lint and Formatting, task, P3)

Tracking

(firefox137 fixed)

RESOLVED FIXED
137 Branch
Tracking Status
firefox137 --- fixed

People

(Reporter: standard8, Assigned: zombie)

References

(Blocks 1 open bug)

Details

(Whiteboard: [addons-jira])

Attachments

(1 file)

When running TypeScript checks on the search code, I'm seeing an error in our core types library:

tools/@types/lib.gecko.dom.d.ts:11059:11 - error TS2430: Interface 'HTMLScriptElement' incorrectly extends interface 'HTMLElement'.
  Types of property 'innerText' are incompatible.
    Type 'string | TrustedScript' is not assignable to type 'string'.
      Type 'TrustedScript' is not assignable to type 'string'.

11059 interface HTMLScriptElement extends HTMLElement {

I think that is as a result of processing this line.

Also clean up a couple of hacks not needed anymore.

Assignee: nobody → tomica
Status: NEW → ASSIGNED
Whiteboard: [addons-jira]
Pushed by tjovanovic@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/205c28f23083 Add @ts-ignore for HTMLScriptElement in lib.gecko.dom.d.ts r=saschanaz
Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: