-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
Domain: JSDocRelates to JSDoc parsing and type generationRelates to JSDoc parsing and type generationNeeds ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.This issue needs a plan that clarifies the finer details of how it could be implemented.SuggestionAn idea for TypeScriptAn idea for TypeScript
Description
It would be cool to annotate a method or property with a deprecated attribute
Proposal
If a warning could be issued when using a deprecated method or property it is easier to upgrade to a newer library version (only when the definitions are up to date of course)
Syntax: Same as JSDoc, a simple comment
/**
* @deprecated Use other method
*/
public foo() {
}
If supported in .d.ts files, this would really help with upgrading to a newer version.
supersonicclay, DibranMulder, bondz, wclr, igogrek and 283 moreal-pt-old, michahell, ken0x0a, rchanaud, motss and 2 moreken0x0a, motss, limichange, ghiscoding, rogerpadilla and 1 moreken0x0a, motss, limichange, rogerpadilla and michahell
Metadata
Metadata
Assignees
Labels
Domain: JSDocRelates to JSDoc parsing and type generationRelates to JSDoc parsing and type generationNeeds ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.This issue needs a plan that clarifies the finer details of how it could be implemented.SuggestionAn idea for TypeScriptAn idea for TypeScript