I have the same require. I don’t want my IntelliJ warn me every time I call AJS.toInit
or whatever code like that.
I believe that you only need to put the Javascript file to the global library in IntelliJ and it will recognize this lib.
This is my workaround solution to get rid of those warnings. Just add this JS file to your Editor’s libraries, the file can be found here: ajs.js · GitHub
This js file defines the methods that I want IntelliJ to recognize.