title: TypeScript error when using the Spread operator?
body: <p><a href="https://i.stack.imgur.com/b9Yz6.png" rel="noreferrer"><img src="https://i.stack.imgur.com/b9Yz6.png" alt="enter image description here"></a>
  Whenever I use the spread operator such as below</p>
  
  <pre><code>public drawTextTest(p1: number, p2: number, p3: number):void {
      console.log(p1, p2, p3);
  }
  let array = [2, 2, 5];
  this.drawTextTest( ... array );
  </code></pre>
  
  <p>I get this error in the editor</p>
  
  <blockquote>
    <p>[ts] Expected # arguments, but got a minimum of 0.</p>
  </blockquote>
  
  <p>Why does TypeScript give an error when using the spread operator to pass arguments? </p>
  
  <p>There's no error when I actually run the code, the spread operator is simply letting me use the array as arguments to a function yet in VSCode it shows me the error as if I couldn't.</p>