Global functions

Make the error indicators consider global functions as well. I have the Wait function defined as global.Wait, and the code works. But the indicator is still there

This is just the linter in the editor. It works, but the editor doesn’t recognize the function.

However, avoid the usage of global (see

Hi Freddie!

One option that you can do is to use an annotation like

/* globals Wait */

to explain to linter that a particular function will be available in the environment, even if the linter is confused about how precisely it might become available. (There are a lot of ways to confuse the linter, not only assigning a key into the global object - it’s a difficult problem.)

Hope this helps,



Thanks, I used to work around this with

If(!Wait){var Wait = null;}