Generic and typeof T in the parameters
<p>In TypeScript I can define the type of a variable as the type of a class. For example:</p>

<pre><code>class MyClass { ... }

let myVar: typeof MyClass = MyClass;
</code></pre>

<p>Now I want to use this with a generic class, something like this:</p>

<pre><code>class MyManager&lt;T&gt; {
    constructor(cls: typeof T) { ... }
    /* some other methods, which uses instances of T */
}

let test = new MyManager(MyClass); /* &lt;MyClass&gt; should be implied by the parameter */
</code></pre>

<p>So, I want to give my manager class another class (its constructor), because the manager needs to retreive static information associated with the <em>class</em>.</p>

<p>When compiling my code, it says that it cannot find name 'T', where my constructor is.</p>

<p>Any idea how to solve it?</p>