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)
Developer Infrastructure
Lint and Formatting
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.
Assignee | ||
Comment 1•6 months ago
|
||
Also clean up a couple of hacks not needed anymore.
Updated•6 months ago
|
Assignee: nobody → tomica
Status: NEW → ASSIGNED
Assignee | ||
Updated•6 months ago
|
Whiteboard: [addons-jira]
Updated•6 months ago
|
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
Comment 3•6 months ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 6 months ago
status-firefox137:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•