Closed
Bug 1974712
Opened 1 month ago
Closed 1 month ago
TypeScript issue in UnitConverterSimple.sys.mjs - Argument of type 'number' is not assignable to parameter of type 'string'
Categories
(Firefox :: Address Bar, task, P2)
Firefox
Address Bar
Tracking
()
RESOLVED
FIXED
142 Branch
Tracking | Status | |
---|---|---|
firefox142 | --- | fixed |
People
(Reporter: standard8, Assigned: yazan)
References
Details
(Whiteboard: [sng])
Attachments
(1 file)
After landing of bug 1969249, there's now a TypeScript error shown when loading UnitConverterSimple.sys.mjs
into VS Code or when running ./mach ts check browser/components/urlbar
:
browser/components/urlbar/unitconverters/UnitConverterSimple.sys.mjs:197:7 - error TS2345: Argument of type 'number' is not assignable to parameter of type 'string'.
197 (inputNumber / group[inputUnit]) * group[outputUnit]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 1 error in browser/components/urlbar/unitconverters/UnitConverterSimple.sys.mjs:197
Yazan, please can you take a look.
Flags: needinfo?(yalmacki)
Updated•1 month ago
|
Reporter | ||
Updated•1 month ago
|
Severity: -- → N/A
Priority: -- → P2
Assignee | ||
Comment 1•1 month ago
|
||
Pushed by yalmacki@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/16377e7008a7
https://hg.mozilla.org/integration/autoland/rev/c02f1a2cc284
Remove erroneous parseFloat call on number. r=Standard8,urlbar-reviewers
Status: NEW → RESOLVED
Closed: 1 month ago
status-firefox142:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 142 Branch
Updated•29 days ago
|
QA Whiteboard: [search] [qa-triage-done-c142/b141]
Assignee | ||
Updated•24 days ago
|
Flags: needinfo?(yalmacki)
You need to log in
before you can comment on or make changes to this bug.
Description
•