Closed Bug 2087449 Opened 28 days ago Closed 14 days ago

Add a TypeScript declaration for Iterator.concat

Categories

(Developer Infrastructure :: Linting and Formatting: JavaScript, task)

task

Tracking

(firefox162 fixed)

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: leo, Assigned: leo)

References

Details

Attachments

(1 external file)

Firefox supports Iterator.concat, but the TypeScript version we use (6.0.3) doesn't declare it, so type-checked code that calls it fails ./mach ts check. TypeScript 7.1 adds the declaration in lib.es2026.iterator.d.ts, but upgrading to TypeScript 7 is blocked on bug 2053700.

This will let getToolForPref in devtools/client/settings/inventory.mjs (added in bug 2081863) drop the @ts-expect-error and IteratorObject<any> cast it currently needs.

Component: Lint and Formatting → Linting and Formatting: JavaScript
Status: ASSIGNED → RESOLVED
Closed: 14 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: