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)

task

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)
Severity: -- → N/A
Priority: -- → P2
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 142 Branch
QA Whiteboard: [search] [qa-triage-done-c142/b141]
Flags: needinfo?(yalmacki)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: