Repository navigation
TypeScript 4.4 libdom changes #1029
Description
Activity
High Level Changes from 4.3 to 4.4
dom.d.tsNew interfaces
BlobEventCSSAnimationCSSCounterStyleRuleCSSTransitionClipboardItemFileSystemFileSystemDirectoryEntryFileSystemDirectoryReaderFileSystemEntryFileSystemFileEntryFontFaceFontFaceSetFontFaceSetLoadEventFormDataEventIdleDeadlineMathMLElementMediaCapabilitiesMediaMetadataMediaRecorderMediaRecorderErrorEventMediaSessionNetworkInformationPerformanceEventTimingPerformancePaintTimingPictureInPictureWindowRemotePlaybackSVGMPathElementSVGSetElementSubmitEvent
Removed interfaces
ApplicationCacheBhxBrowserCaretPositionClientRectClientRectListCryptoKeyPairDOMErrorDOMSettableTokenListDataCueDeferredPermissionRequestDeviceAccelerationDeviceRotationRateExtensionScriptApisFocusNavigationEventGamepadPoseHTMLAppletElementHTMLDialogElementHTMLTableDataCellElementHTMLTableHeaderCellElementInputDeviceInfoListeningStateChangedEventMSAssertionMSBlobBuilderMSFIDOCredentialAssertionMSFIDOSignatureMSFIDOSignatureAssertionMSGestureMSGraphicsTrustMSInputMethodContextMSMediaKeyErrorMSMediaKeySessionMSMediaKeysMSStreamMediaStreamErrorMediaStreamErrorEventMediaStreamEventMediaStreamTrackAudioSourceNodeNavigationPreloadManagerNodeFilterOffscreenCanvasOffscreenCanvasRenderingContext2DOverflowEventPerfWidgetExternalPermissionRequestPermissionRequestedEventRTCDtlsTransportStateChangedEventRTCDtmfSenderRTCErrorRTCErrorEventRTCIceCandidatePairChangedEventRTCIceGathererRTCIceGathererEventRTCIceTransportStateChangedEventRTCIdentityAssertionRTCSctpTransportRTCSrtpSdesTransportRTCSsrcConflictEventRTCStatsProviderRandomSourceSVGCursorElementSVGElementInstanceSVGElementInstanceListSVGPathSegSVGPathSegArcAbsSVGPathSegArcRelSVGPathSegClosePathSVGPathSegCurvetoCubicAbsSVGPathSegCurvetoCubicRelSVGPathSegCurvetoCubicSmoothAbsSVGPathSegCurvetoCubicSmoothRelSVGPathSegCurvetoQuadraticAbsSVGPathSegCurvetoQuadraticRelSVGPathSegCurvetoQuadraticSmoothAbsSVGPathSegCurvetoQuadraticSmoothRelSVGPathSegLinetoAbsSVGPathSegLinetoHorizontalAbsSVGPathSegLinetoHorizontalRelSVGPathSegLinetoRelSVGPathSegLinetoVerticalAbsSVGPathSegLinetoVerticalRelSVGPathSegListSVGPathSegMovetoAbsSVGPathSegMovetoRelSVGZoomEventServiceUIFrameContextSpeechGrammarSpeechGrammarListSpeechRecognitionSpeechRecognitionErrorEventSpeechRecognitionEventStyleMediaSyncManagerTextEventVRDisplayVRDisplayCapabilitiesVRDisplayEventVREyeParametersVRFieldOfViewVRFrameDataVRPoseWebKitPointwebkitRTCPeerConnection
Modified
- Animation
- Added:
onremove,replaceState,commitStyles,persist
- Added:
- AudioContext
- Removed:
outputLatency,createMediaStreamTrackSource
- Removed:
- CSSStyleDeclaration
- Added:
appearance,aspectRatio,backgroundBlendMode,borderBlock,borderBlockColor,borderBlockStyle,borderBlockWidth,borderEndEndRadius,borderEndStartRadius,borderInline,borderInlineColor,borderInlineStyle,borderInlineWidth,borderStartEndRadius,borderStartStartRadius,colorScheme,contain,counterSet,fontOpticalSizing,fontVariantAlternates,fontVariationSettings,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,isolation,marginBlock,marginInline,mixBlendMode,offset,offsetAnchor,offsetDistance,offsetPath,offsetRotate,paddingBlock,paddingInline,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapStop,scrollSnapType,shapeImageThreshold,shapeMargin,shapeOutside,textDecorationSkipInk,textDecorationThickness,textUnderlineOffset - Removed:
glyphOrientationVertical,maskComposite,maskImage,maskPosition,maskRepeat,maskSize,rubyAlign,textJustify,webkitTapHighlightColor,webkitTextSizeAdjust,zoom
- Added:
- CanvasRenderingContext2D
- Added:
getContextAttributes
- Added:
- Clipboard
- Added:
read,write
- Added:
- CompositionEvent
- Added:
initCompositionEvent
- Added:
- DataTransferItemList
- Removed:
item
- Removed:
- Document
- Added:
pictureInPictureEnabled,rootElement,exitPictureInPicture,hasStorageAccess,requestStorageAccess - Removed:
caretPositionFromPoint,getAnimations
- Added:
- Element
- Added:
part - Removed:
msGetRegionContent
- Added:
- File
- Added:
webkitRelativePath
- Added:
- Gamepad
- Removed:
hand,pose
- Removed:
- GamepadHapticActuator
- Removed:
pulse
- Removed:
- HTMLCanvasElement
- Added:
captureStream - Removed:
transferControlToOffscreen
- Added:
- HTMLElement
- Added:
outerText
- Added:
- HTMLFormElement
- Added:
requestSubmit
- Added:
- HTMLIFrameElement
- Removed:
allowPaymentRequest
- Removed:
- HTMLInputElement
- Added:
capture,webkitEntries,webkitdirectory
- Added:
- HTMLMarqueeElement
- Removed:
onbounce,onfinish,onstart
- Removed:
- HTMLMediaElement
- Added:
disableRemotePlayback,remote
- Added:
- HTMLOptGroupElement
- Removed:
form
- Removed:
- HTMLVideoElement
- Added:
disablePictureInPicture,onenterpictureinpicture,onleavepictureinpicture,requestPictureInPicture
- Added:
- IDBCursor
- Added:
request
- Added:
- IDBFactory
- Added:
databases
- Added:
- IDBTransaction
- Added:
commit
- Added:
- InputEvent
- Added:
dataTransfer,getTargetRanges
- Added:
- KeyboardEvent
- Added:
initKeyboardEvent - Removed:
char
- Added:
- KeyframeEffect
- Added:
pseudoElement
- Added:
- MediaDevices
- Added:
getDisplayMedia
- Added:
- MediaStreamTrack
- Added:
contentHint
- Added:
- MessageEvent
- Added:
initMessageEvent
- Added:
- Navigator
- Added:
mediaCapabilities,mediaSession - Removed:
activeVRDisplays,msManipulationViewsEnabled,msMaxTouchPoints,msPointerEnabled,getUserMedia,getVRDisplays,msLaunchUri,msSaveBlob,msSaveOrOpenBlob
- Added:
- Node
- Removed:
namespaceURI
- Removed:
- Notification
- Removed:
actions,badge,image,renotify,requireInteraction,silent,timestamp,vibrate
- Removed:
- PaymentRequest
- Removed:
onshippingaddresschange,onshippingoptionchange,shippingAddress,shippingOption,shippingType
- Removed:
- PaymentResponse
- Removed:
onpayerdetailchange,payerEmail,payerName,payerPhone,shippingAddress,shippingOption,addEventListener,removeEventListener
- Removed:
- PerformanceMark
- Added:
detail
- Added:
- PerformanceMeasure
- Added:
detail
- Added:
- PushSubscription
- Removed:
expirationTime
- Removed:
- PushSubscriptionOptions
- Removed:
userVisibleOnly
- Removed:
- RTCDtlsTransport
- Removed:
iceTransport,onerror,getRemoteCertificates
- Removed:
- RTCIceCandidate
- Added:
address
- Added:
- RTCIceTransport
- Removed:
ongatheringstatechange,onselectedcandidatepairchange,onstatechange,role,getLocalCandidates,getLocalParameters,getRemoteCandidates,getRemoteParameters,getSelectedCandidatePair,addEventListener,removeEventListener
- Removed:
- RTCPeerConnection
- Removed:
idpErrorInfo,idpLoginUrl,peerIdentity,sctp,getIdentityAssertion,setIdentityProvider
- Removed:
- RTCRtpTransceiver
- Removed:
setCodecPreferences
- Removed:
- ReadableStream
- Added:
forEach
- Added:
- Request
- Removed:
isHistoryNavigation,isReloadNavigation
- Removed:
- Response
- Removed:
trailer
- Removed:
- SVGAElement
- Added:
rel,relList
- Added:
- SVGAnimationElement
- Added:
beginElement,beginElementAt,endElement,endElementAt
- Added:
- SVGPathElement
- Removed:
pathSegList,getPointAtLength,getTotalLength
- Removed:
- SVGSVGElement
- Removed:
onunload,onzoom,getComputedStyle
- Removed:
- SVGTransformList
- Added:
length
- Added:
- SVGViewElement
- Removed:
viewTarget
- Removed:
- SecurityPolicyViolationEvent
- Added:
disposition,sample
- Added:
- ServiceWorkerRegistration
- Removed:
navigationPreload,sync
- Removed:
- ShadowRoot
- Added:
delegatesFocus
- Added:
- SourceBuffer
- Added:
changeType
- Added:
- StorageEvent
- Added:
initStorageEvent
- Added:
- TextMetrics
- Added:
fontBoundingBoxAscent,fontBoundingBoxDescent
- Added:
- Touch
- Removed:
altitudeAngle,azimuthAngle,touchType
- Removed:
- UIEvent
- Added:
initUIEvent
- Added:
- VideoPlaybackQuality
- Added:
corruptedVideoFrames
- Added:
- Window
- Added:
cancelIdleCallback,requestIdleCallback - Removed:
applicationCache,defaultStatus,doNotTrack,msContentScript,offscreenBuffering,oncompassneedscalibration,ondeviceorientationabsolute,ongamepadconnected,ongamepaddisconnected,onmousewheel,onreadystatechange,onvrdisplayactivate,onvrdisplayblur,onvrdisplayconnect,onvrdisplaydeactivate,onvrdisplaydisconnect,onvrdisplaypresentchange,styleMedia,departFocus,getMatchedCSSRules,msWriteProfilerMark,webkitCancelAnimationFrame,webkitConvertPointFromNodeToPage,webkitConvertPointFromPageToNode,webkitRequestAnimationFrame
- Added:
- WritableStream
- Added:
close
- Added:
Non-value types
- AddEventListenerOptions
- Added:
signal
- Added:
- CanvasRenderingContext2DSettings
- Added:
colorSpace,willReadFrequently
- Added:
- ComputedEffectTiming
- Added:
startTime
- Added:
- EffectTiming
- Added:
playbackRate
- Added:
- InputEventInit
- Added:
dataTransfer,targetRanges
- Added:
- KeyframeEffectOptions
- Added:
pseudoElement
- Added:
- MediaKeySystemMediaCapability
- Added:
encryptionScheme
- Added:
- MediaStreamConstraints
- Added:
preferCurrentTab
- Added:
- MediaTrackCapabilities
- Added:
cursor,displaySurface,logicalSurface
- Added:
- MediaTrackConstraintSet
- Added:
suppressLocalAudioPlayback - Removed:
autoGainControl,noiseSuppression,resizeMode
- Added:
- MediaTrackSettings
- Added:
restrictOwnAudio - Removed:
autoGainControl,channelCount,latency,noiseSuppression,resizeMode
- Added:
- MediaTrackSupportedConstraints
- Added:
suppressLocalAudioPlayback - Removed:
autoGainControl,channelCount,latency,noiseSuppression,resizeMode
- Added:
- OptionalEffectTiming
- Added:
playbackRate
- Added:
- PaymentDetailsBase
- Removed:
shippingOptions
- Removed:
- PaymentDetailsUpdate
- Removed:
error,payerErrors,shippingAddressErrors
- Removed:
- PaymentValidationErrors
- Removed:
payer,shippingAddress
- Removed:
- RTCIceCandidatePairStats
- Removed:
bytesDiscardedOnSend,circuitBreakerTriggerCount,consentExpiredTimestamp,consentRequestsSent,currentRtt,firstRequestTimestamp,lastPacketReceivedTimestamp,lastPacketSentTimestamp,lastRequestTimestamp,lastResponseTimestamp,packetsDiscardedOnSend,packetsReceived,packetsSent,priority,retransmissionsReceived,retransmissionsSent,totalRtt
- Removed:
- RTCPeerConnectionIceErrorEventInit
- Added:
errorText - Removed:
statusText
- Added:
- RTCRtpEncodingParameters
- Added:
priority
- Added:
- RTCRtpSendParameters
- Added:
degradationPreference
- Added:
- RTCRtpSynchronizationSource
- Removed:
voiceActivityFlag
- Removed:
- RTCTransportStats
- Removed:
iceRole,packetsReceived,packetsSent,selectedCandidatePairChanges,tlsGroup
- Removed:
- SecurityPolicyViolationEventInit
- Added:
disposition,sample
- Added:
- ShadowRootInit
- Added:
slotAssignment
- Added:
- ShareData
- Added:
files
- Added:
- UIEventInit
- Added:
which
- Added:
- AnimationEventMap
- Added:
"remove"
- Added:
- CanvasUserInterface
- Removed:
scrollPathIntoView
- Removed:
- DocumentOrShadowRoot
- Added:
pictureInPictureElement,getAnimations - Removed:
caretPositionFromPoint,caretRangeFromPoint,elementFromPoint,elementsFromPoint,getSelection
- Added:
- GlobalEventHandlersEventMap
- Added:
"formdata","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend" - Removed:
"cancel","dragexit"
- Added:
- GlobalEventHandlers
- Added:
onformdata,onwebkitanimationend,onwebkitanimationiteration,onwebkitanimationstart,onwebkittransitionend - Removed:
oncancel,ondragexit,onsecuritypolicyviolation
- Added:
- NavigatorContentUtils
- Removed:
unregisterProtocolHandler
- Removed:
- ParentNode
- Added:
replaceChildren
- Added:
- PaymentRequestEventMap
- Removed:
"shippingaddresschange","shippingoptionchange"
- Removed:
- RTCDtlsTransportEventMap
- Removed:
"error"
- Removed:
- SVGSVGElementEventMap
- Removed:
"SVGUnload","SVGZoom"
- Removed:
- WindowEventMap
- Removed:
"abort","afterprint","beforeprint","beforeunload","blur","canplay","canplaythrough","change","click","compassneedscalibration","contextmenu","dblclick","deviceorientationabsolute","drag","dragend","dragenter","dragleave","dragover","dragstart","drop","durationchange","emptied","ended","error","focus","hashchange","input","invalid","keydown","keypress","keyup","load","loadeddata","loadedmetadata","loadstart","message","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","offline","online","pagehide","pageshow","pause","play","playing","popstate","progress","ratechange","readystatechange","reset","resize","scroll","seeked","seeking","select","stalled","storage","submit","suspend","timeupdate","unload","volumechange","vrdisplayactivate","vrdisplayblur","vrdisplayconnect","vrdisplaydeactivate","vrdisplaydisconnect","vrdisplaypresentchange","waiting"
- Removed:
- WindowEventHandlersEventMap
- Added:
"gamepadconnected","gamepaddisconnected"
- Added:
- WindowEventHandlers
- Added:
ongamepadconnected,ongamepaddisconnected
- Added:
- WindowOrWorkerGlobalScope
- Added:
crossOriginIsolated
- Added:
- Console
- Removed:
memory,exception
- Removed:
- HTMLElementTagNameMap
- Removed:
"applet"
- Removed:
- SVGElementTagNameMap
- Added:
"animate","animateMotion","animateTransform","feDropShadow","mpath","set"
- Added:
index.iterable.d.tsNon-value types
- Navigator
- Added:
vibrate
- Added:
Reacted by Daniel Rosenwasser, Mattias Buelens, Kirill Groshkov, Kagami Sascha Rosylight, LeoniePhiline, Erik, Hana Joo, Jeff Zou, Albin Jacobsson, Naresh and 7 moreThe following four types also seems to be removed, but are not mentioned in the above list :
- AudioParamDescriptor
- RTCInboundRTPStreamStats
- RTCMediaStreamTrackStats
- RTCStatsCallback
Reacted by Alexander Kachkaev, WofWca, bjarkler, Jan Hesters, krinoid and Dirk Holtwick@types/web@0.0.16should be the version which is shipped with TS 4.4rcFound undocumented breaking change:
PermissionNamehas less union members than 4.3 which cause the following code type error.navigator.permissions.query({ name: 'camera' })
See: https://w3c.github.io/permissions/#enumdef-permissionname
Reacted by Mathijs Kadijk, Chris Shepherd, signed and Mykola NikoliukBreaking change documented wrong:
CryptoKeyPairdidn't get removed.// 4.3 interface CryptoKeyPair { privateKey: CryptoKey; publicKey: CryptoKey; } // 4.4 interface CryptoKeyPair { privateKey?: CryptoKey; publicKey?: CryptoKey; }
Reacted by Gus NareaClipboardItemconstructor type is wrong. According to MDN, it should bestring | Blob | Promise<string | Blob>.In 4.3 it is
string | Blob, in 4.4 it isPromise<string | Blob>which is wrong.Reacted by Kagami Sascha Rosylight, gegorov, Frantisek Elias, manoel-zhelev, McKayla はな , Jaime Valdivia, zz and NomarCubsaschanaz commented
on Aug 14, 2021 ContributorMore actionsFound undocumented breaking change:
PermissionNamehas less union members than 4.3 which cause the following code type error.navigator.permissions.query({ name: 'camera' })
See: https://w3c.github.io/permissions/#enumdef-permissionname
Camera permission is at risk because of lack of multiple implementation, so I guess the work item is to document the removal.
ClipboardItemconstructor type is wrong. According to MDN, it should bestring | Blob | Promise<string | Blob>.In 4.3 it is
string | Blob, in 4.4 it isPromise<string | Blob>which is wrong.Reacted by Jack WorksHolgerJeromin commented
on Aug 27, 2021 ContributorMore actionsI want to add (deprecated: ref #884)
mouseWheelEventto the list of removed typesReacted by Gilad SherUndocumented change
msSaveBlobwas removed fromwindow.navigatorin TypeScript 4.4.2.Reacted by Vyacheslav Putsenko, Dmitry Ivanov and adisa404I tried upgrading from TS 4.3.5 to 4.4.2 today and encountered two issues:
HTMLDialogElementwent missing (as a value, not as a type). This is noted in the list above. But why? It's supported by Chrome, Edge, and Opera, and by Firefox behind a flag. The type is still present, as it is needed to represent<dialog>elements. I can writedeclare var HTMLDialogElement: HTMLDialogElement;to allow using it as a value, but thenelement instanceof HTMLDialogElementno longer works as a type guard.HTMLInputElement.autofocuswas removed. This is not noted in the list above. This seems like a bug since it is supported in every browser. The MDN page's browser compatibility section just refers to the page for the global autofocus attribute where it is noted as fully supported in Chrome, Edge, and Opera, and supported everywhere on several elements including HTMLInputElement. In my case, I have a custom JSX implementation, and I basically have to patch theHTMLInputElementtype to work around this.
It would be great if these changes could be reverted.
Reacted by rouden, Wesley Smits, Till Schweneker, u-sho (Shouhei Uechi), South Drifter, Jarrod Davis, Mu-An Chiou, Matteus Legat and David Sauttersaschanaz commented
on Aug 27, 2021 ContributorMore actionsHTMLDialogElementwent missing (as a value, not as a type). This is noted in the list above. But why? It's supported by Chrome, Edge, and Opera, and by Firefox behind a flag. The type is still present, as it is needed to represent<dialog>elements. I can writedeclare var HTMLDialogElement: HTMLDialogElement;to allow using it as a value, but thenelement instanceof HTMLDialogElementno longer works as a type guard.
Chrome/Edge/Opera all uses the same engine Blink and no other engine supports it without a flag, that is why. Please refer to https://github.com/microsoft/TypeScript-DOM-lib-generator#when-the-type-is-missing for the reasoning here.
HTMLInputElement.autofocuswas removed. This is not noted in the list above. This seems like a bug since it is supported in every browser. The MDN page's browser compatibility section just refers to the page for the global autofocus attribute where it is noted as fully supported in Chrome, Edge, and Opera, and supported everywhere on several elements including HTMLInputElement. In my case, I have a custom JSX implementation, and I basically have to patch theHTMLInputElementtype to work around this.
Fixed by #1111
Reacted by rouden and South DrifterThanks, I read that section of the README but it's not clear about flagged features, plus
<dialog>is enabled by default in Firefox Nightly.Reacted by Jirka Dell'Oro-FriedlReacted by roudenWhy was
hashchangeevent removed? Now there is onlyEventwhich doesn't havenewURLproperty:
https://www.typescriptlang.org/play?ts=4.4.2#code/O4SwdgJg9sB0CGEIFEBuBTMAXAMiAzlpugE4AUA5ABbz5UDGNYA5uhQDQAEZ6AXJwAlaVAMJNWaTFgCUnALwA+TgG90sMOmABVAEo4AvtKAsaschanaz commented
on Aug 30, 2021 ContributorMore actionsWhy was
hashchangeevent removed? Now there is onlyEventwhich doesn't havenewURLproperty:
https://www.typescriptlang.org/play?ts=4.4.2#code/O4SwdgJg9sB0CGEIFEBuBTMAXAMiAzlpugE4AUA5ABbz5UDGNYA5uhQDQAEZ6AXJwAlaVAMJNWaTFgCUnALwA+TgG90sMOmABVAEo4AvtKAFixed by #1104
Reacted by Juraj MäsiarLocation#reload(forcedReload: boolean): voidwas removed as well.
Was that intended?58 remaining items
Touch
Removed: altitudeAngle, azimuthAngle, touchType
They MUST NOT be removed. They are actually defined in the specification.
saschanaz commented
on Jun 5, 2022 ContributorMore actionsThey MUST NOT be removed. They are actually defined in the specification.
Please check README. (And MDN browser compatibility)
I see. You should edit the following too:
TypeScript-DOM-lib-generator/baselines/dom.generated.d.ts
Lines 1726 to 1742 in 6683182
interface TouchInit { altitudeAngle?: number; azimuthAngle?: number; clientX?: number; clientY?: number; force?: number; identifier: number; pageX?: number; pageY?: number; radiusX?: number; radiusY?: number; rotationAngle?: number; screenX?: number; screenY?: number; target: EventTarget; touchType?: TouchType; } Reacted by Kagami Sascha Rosylight- added a commit that references this issue
on Oct 26, 2022 Orta Therox (@orta) I find a Type bug of Font Face API: microsoft/TypeScript#51885
- added a commit that references this issue
on Apr 15, 2023 HolgerJeromin commented
on Sep 4, 2024 ContributorMore actionsI dont this this issue still needs to stay open...
saschanaz commented
on Sep 4, 2024 ContributorMore actionsYeah, time to close this.
@github-actions close
Reacted by Holger Jerominsaschanaz commented
on Sep 4, 2024 ContributorMore actionsEh. Error: Resource not accessible by integration. Jake Bailey (@jakebailey), can you check? Thanks!
Fixed in #1799; didn't realize the codeowners system could also close issues.
saschanaz commented
on Sep 4, 2024 ContributorMore actionsThank you!
@github-actions close
Closing because Kagami Sascha Rosylight (@saschanaz) is one of the code-owners of this repository.
Reacted by Kagami Sascha Rosylight- added a commit that references this issue
on Sep 4, 2025 - added a commit that references this issue
on Aug 6, 2026
Beta
With TypeScript 4.4, we coordinated some pretty fundamental infrastructure work to prepare for the version of
dom.d.tswith the future of the generator repo. This work resulted in two note-worthy items:The
dom.d.tsfiles typically accessed inside TypeScript are now also deployed to@types/webstarting with version0.0.1which corresponds to the version oflibdom.d.tsin TypeScript 4.3. This means an update to TypeScript 4.4 does not mean you have to update all of your web.d.tsfiles.The name change is to more accurately reflect the scope of the APIs, for a long time the file has provided much more APIs than just the DOM and
@types/webreflects that. If you're interested in switching to use@types/web, there are instructions in the npm README.The 4.4
dom.d.tsfile which is included with TypeScript includes quite a lot of changes, with a lot of APIs which have been marked as deleted by the web standards committees. You can see the full list in this issueWe've been testing these changes with DefinitelyTyped, and have been individually rolling back changes which we think are a bit too breaking, this is more of an art than a science however. If you think we should rollback a particular change we're open to discussing change in this issue or the
dom-lib-generatorchannel in the TypeScript Community DiscordWe plan to have thorough support for replacing
lib.dom.d.tswith@types/webin 4.5 with microsoft/TypeScript#44795