JSDoc to mark a Javascript or Typescript function as Ajax Callback function

Hello PhpStorm community,
I have a problem with PhpStorm highlighting methods which are used as Ajax Callback functions as unused methods. I have attached a screenshot showing the wrong code inspection. I know that this is because the method call is dynamically invoked by evaluating the function name sent by the server-side. My question is: Is there any JSDoc or other annotation to mark JS or typescript functions as clientside callback functions, telling PhpStorm that this function is actually called by the server-side. Otherwise all those "Unused method" notifications are pretty much messing up the code, and real errors are harder to spot.
Thanks for your help
Martin

callback-highlighting.jpg



Attachment(s):
callback-highlighting.jpg

Please sign in to leave a comment.