title: Get VS javascript intellisense for js in a different file
body: <p>So I've defined my 'enum' at the top of my javascript file as so:</p>
  
  <pre><code>var loaderOptions = { "SHOW": 0,
      "CHANGEPAGE": 1,
      "HIDE": 2
  };
  </code></pre>
  
  <p>I wanted this enum to be used in a utility function used later ( showLoader(miliseconds, elementOrPageID, option, textMessage, callbackFunc) {}  ).  </p>
  
  <p>This is all working fabulously as I have intellisense when I call the enum/variable <img src="https://i.stack.imgur.com/JGkwM.png" alt="enter image description here"></p>
  
  <p>HOWEVER, I would like to move the function and its enum OUT of my main file into a utility file ... I can make this work just fine but I lose the intellisense ... any tricks to be able to keep this ability?</p>