title: TypeScript array of functions
body: <p>I was wondering how could one declare a typed-function array in TypeScript.</p>
  
  <p>For instance, say I have a field which can hold a function that has no arguments and returns void:</p>
  
  <pre><code>private func: () =&gt; void;
  </code></pre>
  
  <p>Now, say I wanted a field which can hold an array of such functions:</p>
  
  <pre><code>private funcs: () =&gt; void  [];
  </code></pre>
  
  <p>This is obviously the wrong way to do what I intended since the compiler considers this to be a function which returns an array of voids.</p>
  
  <p>Trying to isolate the inline prototype declaration with parentheses as in:</p>
  
  <pre><code>private funcs2: (  () =&gt; void  ) [];
  </code></pre>
  
  <p>causes a compiler error.</p>
  
  <p>Does anyone have an idea of how this could be accomplished ?</p>