TypeScript, bind multiple params to same type
<p>Is there a way to achieve the following with TypeScript?</p>

<pre><code>function add(x, y) {
    return x + y;
}
</code></pre>

<p>I want the following to compile:</p>

<pre><code>add(1, 2);
add("hello ", "world");
</code></pre>

<p>But I do not want the following to compile:</p>

<pre><code>add(4, "world");
add("hello ", 4);
</code></pre>

<p>Note also, I want it to compile for strings and numbers only.</p>