title: Constructor function for array
body: <p>I am trying to pass a constructor function of a strongly typed array to a method.</p>
  
  <p>The method looks like this:</p>
  
  <pre><code>foo&lt;T&gt;(clazz: {new(): T[]}) {
      // ...
  }
  </code></pre>
  
  <p>But I was unable to call this method. I tried <code>foo&lt;MyClass&gt;(MyClass[])</code> but that just creates a compiler error.</p>
  
  <p>I am trying to use the class MapUtils from <a href="http://cloudmark.github.io/Json-Mapping/" rel="nofollow noreferrer">here</a> to deserialize a JSON array into a strong typed object array.</p>
  
  <p>I am receiving the following JSON:</p>
  
  <pre><code>[
      {name: "name1", ...},
      {name: "name2", ...}
  ]
  </code></pre>
  
  <p>And, using <code>MapUtils.deserialize</code>, I want this as the result:</p>
  
  <pre><code>[
      &lt;Person&gt; { name: "name1", ... },
      &lt;Person&gt; { name: "name2", ... }
  ]
  </code></pre>