Ignore values defined in another file

so in my main html file i have my js files like this:

    <script src="/public/cookies.js"></script>
    <script src="/socket.io/socket.io.js"></script>
    <script src="/public/client.js"></script>

anyway, in my client file i use functions defined in the socket.io and cookies files. the editor however shows them as undefined which is a pain. anyway to fix that?
these are both defined in the other scripts

You can set a hint to let the editor know you have a global variable …

/* global setCookie io */
setCookie("name", user);
const socket = io({
1 Like

Thanks so much for this