Repository navigation
Update DOM types - #65487
Update DOM types#65487Jake Bailey (jakebailey) wants to merge 1 commit into
Conversation
|
TypeScript Bot (@typescript-bot) test it |
There was a problem hiding this comment.
🔵 Needs a closer look
Install-event callbacks do not expose addRoutes, and both getAllRecords() declarations lose the known IDBRecord[] result type by returning unparameterized IDBRequest.
No open issues 🎉
What changed in this PR
Updates the native TypeScript compiler’s bundled web-platform declarations and adjusts affected compiler baselines.
Changes:
- Adds worker API declarations for service-worker routing, IndexedDB records, WebTransport, and graphics features.
- Refines existing API types and refreshes documentation comments.
- Updates baselines to reflect new global names and DOM members.
| File | Description |
|---|---|
tsc/testdata/baselines/reference/conformance/globalThisBlockscopedProperties.types |
Records newly available global API names. |
tsc/testdata/baselines/reference/compiler/mappedTypeRecursiveInference.errors.txt |
Includes ariaNotify in the expanded DOM diagnostic. |
tsc/internal/bundled/libs/lib.webworker.d.ts |
Refreshes worker API declarations and documentation. |
Review effort: Balanced
|
Hey Jake Bailey (@jakebailey), the results of running the DT tests are ready. There were interesting changes: Branch only errors:
|
|
Jake Bailey (@jakebailey) Here are the results of running the user tests with tsc comparing Everything looks good! |
|
Jake Bailey (@jakebailey) Here they are:
tscComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
Developer Information: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Jake Bailey (@jakebailey) Here are the results of running the top 400 repos with tsc comparing Something interesting changed - please have a look. Details
|
This pulls in the latest DOM types.
SpeechRecognition,SpeechRecognitionPhrase, speech grammar interfaces, and local recognition availability and installation APIs.IDBIndex.getAllRecords(),IDBObjectStore.getAllRecords(), and service worker static routing viaInstallEvent.addRoutes().Document.parseHTML(),ShadowRoot.setHTML(),ariaNotify(),HTMLSelectedContentElement, a typed XHTMLcreateElementNS()overload, andCommandEventtypes for command handlers.ReadableStream.from(), generic return types forScheduler.postTask(), SVG hyperlink properties, and additional CSS properties.MutationObserver.observe()now requires its options argument;ViewTimelinerequires an options object with a subject; speech recognition resultitem()methods can returnnull; andRTCRtpEncodingParameters.totalEncodedBytesTargetis removed.