Skip to content

@‌deprecated JSDoc tag #390

@DickvdBrink

Description

@DickvdBrink

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: JSDocRelates to JSDoc parsing and type generationNeeds ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.SuggestionAn idea for TypeScript

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions