As I am not sure which responsibilities are taken by JSDoc and which by PhpStorm, I just describe a problem.
Imagine a simple class inheritance. All works fine except static method. You can see an example:
As you can see B.s
is not marked by PhpStorm as an inherited from A.s
. And it is not marked by JSDoc with Overrides: A.s
. Object methods (a
) work nice. Another problem is that PhpStorm does not show upper arrow new function B
as it shows for this.a
. But it is only for start. Follow up.
It is very unlikely that you have all classes in one file. And I move class A
into a separate file. Now it works well. But when I add a namespace problems appear. See A.js
:
And B.js
:
As you can see. Now PhpStorm tells us only about A#a
<> B#a
connections.
So how can I solve these problems? Hacks are welcome.