Skip to content

Show deprecation warnings on implementations of a deprecated propertyΒ #60442

Open
@mjbvz

Description

@mjbvz

πŸ”Ž Search Terms

  • Deprecated implementation
  • Deprecated interface

Related #57584

πŸ•— Version & Regression Information

Not a regression

⏯ Playground Link

No response

πŸ’» Code

type I = {
    /**
     * @deprecated
     */
    text: string;
};

function f(i: I) { return i; }
f({ text: 'a' });

const a: I = { text: 'a' }
a.text;

πŸ™ Actual behavior

Currently only the last use of a.text shows as deprecatedImage

πŸ™‚ Expected behavior

It would be helpful to also render deprecations for any implementations of I.text too as these are also using the deprecated property

Additional information about the issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions