if i write such code in webstorm
export class someOne { constructor(param) { this.test = param; } useTest(){ return this.test; } } console.log(new someOne(123).useTest());
and mouseover on "this.test" i see the warning: "Element is not exported"
what does it mean? if i change the .test
to .test1
the warning disappears
For me it worked to mark all "private" properties with a prefixed underscore. Obviously Webstorm/IntelliJ recognized the properties as something that should not be exported.
export class someOne { constructor(param) { this._test = param; } useTest(){ return this._test; } } console.log(new someOne(123).useTest());
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With