TypeScript array with minimum length : <p>How can you create a type in TypeScript that only accepts arrays with two or more elements?</p>

<pre><code>needsTwoOrMore(["onlyOne"]) // should have error
needsTwoOrMore(["one", "two"]) // should be allowed
needsTwoOrMore(["one", "two", "three"]) // should also be allowed
</code></pre>
