Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
435 views
in Technique[技术] by (71.8m points)

typescript - IntelliJ marks reference to base class value as "TS2339" - but it does compile?

So im using typed-mxgraph 0.0.6 and mxgraph 4.2.2 on typescript 4.0.3.

I want to create a custom mxGraphLayout and tried creating a StackLayout in Typescript to edit it further to my requirements.

To access the graph of mxGraphLayout i need to call this.graph. But when I do that my custom layout, IntelliJ tells me it cant find this.graph , since its not declared in my custom layout but in the base class. The exact error code is TS2339.

The weird thing is, it does compile and works just fine!

How can I tell intellij this without having to fix this on each IDE? Since multiple people are working on it its kinda annoying.

question from:https://stackoverflow.com/questions/65829062/intellij-marks-reference-to-base-class-value-as-ts2339-but-it-does-compile

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...