WebStorm: define the variable/parameter type

35 views Asked by At

I would like to know if it is possible to give WebStorm the format of my data with an annotation to no longer have the "Unresolved variable" message:

enter image description here

My code is currently fully functional, it's just WebStorm that puts me in alerts and I'd like to remove them cleanly. I'm currently developing this project in node.js using JavaScript without TypeScript and I don't want to change that.

Thanks in advance for any help!

I tried @typedef but without success.

0

There are 0 answers