Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Ignores @inheritDoc declarations #80

Open
mydea opened this issue Jan 8, 2024 · 1 comment
Open

Ignores @inheritDoc declarations #80

mydea opened this issue Jan 8, 2024 · 1 comment

Comments

@mydea
Copy link

mydea commented Jan 8, 2024

I noticed this more or less accidentally - if you e.g. have code like this:

interface MyInterface {
  /**
   * This is old!
   * @deprecated Do not use this anymore.
   */
   oldProp?: string;
}

class MyClass implements MyInterface {
  /** @inheritDoc /*
  oldProp?: string;
}

const obj = new MyClass();
obj.oldProp = 'xx'; // does not raise an eslint error :(

Honestly I am not sure how easy it is to fix this, but got bitten by this quite a bit because I expected this to work 😅

@gund
Copy link
Owner

gund commented May 20, 2024

Hey, did you try to remove the jsdoc from the class altogether and see if it works without @inheritDoc?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants