TypeScript-DOM-lib-generator icon indicating copy to clipboard operation
TypeScript-DOM-lib-generator copied to clipboard

TypeScript 4.5 libdom changes

Open orta opened this issue 4 years ago • 1 comments

@types/web / lib.dom.d.ts

New interfaces

  • ElementInternals

Removed interfaces

Modified

  • CSSStyleDeclaration
    • Added: accentColor
  • Document
    • Removed: elementFromPoint, elementsFromPoint - these live on DocumentOrShadowRoot instead
  • HTMLElement
    • Added: attachInternals
  • HTMLSlotElement
    • Added: assign
  • Navigator
    • Added: canShare
    • Removed: pointerEnabled - removed from spec in 2014
  • ReadableStream
  • Text
    • Removed: assignedSlot - This might be something we backtrack during the beta, will be easy to re-add if we want. https://github.com/microsoft/TypeScript-DOM-lib-generator/commit/d42f963a7fc80796e7922eaa1cd10df939627cca#r57102539

Non-value types

  • MediaTrackConstraintSet
    • Added: autoGainControl, noiseSuppression
  • MediaTrackSettings
    • Added: autoGainControl, noiseSuppression
  • MediaTrackSupportedConstraints
    • Added: autoGainControl, noiseSuppression
  • DocumentOrShadowRoot
    • Added: elementFromPoint, elementsFromPoint

index.iterable.d.ts

No changes

orta avatar Sep 13 '21 13:09 orta

Text

  • Removed: assignedSlot - This might be something we backtrack during the beta, will be easy to re-add if we want. d42f963#r57102539

Not a breaking change: https://github.com/microsoft/TypeScript-DOM-lib-generator/commit/d42f963a7fc80796e7922eaa1cd10df939627cca#commitcomment-57408110

saschanaz avatar Oct 02 '21 16:10 saschanaz