Closed Bug 1966237 Opened 1 month ago Closed 1 month ago

Fix TypeScript issues raised in PlacesQuery.sys.mjs and PlacesUtils.sys.mjs

Categories

(Toolkit :: Places, task, P2)

task

Tracking

()

RESOLVED FIXED
140 Branch
Tracking Status
firefox140 --- fixed

People

(Reporter: jteow, Assigned: jteow)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

No description provided.
Blocks: 1966240
Summary: Fix TypeScript and ESLint issues raised in PlacesQuery.sys.mjs and PlacesUtils.sys.mjs → Fix TypeScript issues raised in PlacesQuery.sys.mjs and PlacesUtils.sys.mjs
Assignee: nobody → jteow
Status: NEW → ASSIGNED
Pushed by jteow@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/93e2500b2ed3 Fix TypeScript issues raised in PlacesQuery.sys.mjs and PlacesUtils.sys.mjs - r=Standard8

The correct link for the push with failures is this one.

The Date object being passed to toPRTime fails instanceof Date checks. I think it might be because the Javascript realm/context between the call site and the function site is different.

I reverted back to using Moritz's solution, with an additional type check to help Typescript with narrowing.

Flags: needinfo?(jteow)
Pushed by jteow@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/851839cae848 Fix TypeScript issues raised in PlacesQuery.sys.mjs and PlacesUtils.sys.mjs - r=Standard8
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch
QA Whiteboard: [qa-triage-done-c141/b140]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: