Add @deprecated reasons in lib.dom.d.ts #39514
Labels
Bug
A bug in TypeScript
Domain: lib.d.ts
The issue relates to the different libraries shipped with TypeScript
Rescheduled
This issue was previously scheduled to an earlier milestone
Milestone
TypeScript Version: 4.0.0-beta
Search Terms
@deprecated
dom
d.ts
Problem
With TypeScript 4.0, we now render use of
@deprecated
apis. The dom apis include many deprecated symbols, but some of these do not include a reason that explains why a given api is deprecated and which API to use instead. This can be frustrating for users who don't want to see a strike through in the code but also don't know how to fix the problemProposal
Where possible, add
@deprecated
messages to the dom apis. See the MDN documentation on the deprecatedScriptProcessorNode
for example: https://developer.mozilla.org/en-US/docs/Web/API/ScriptProcessorNode/cc @DanielRosenwasser
The text was updated successfully, but these errors were encountered: