<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="type Keyed&lt;a&gt; = { [key: 'this' | 'that']: a; } // expected to work, actual doesn't work"><pre class="notranslate"><code class="notranslate">type Keyed&lt;a&gt; = { [key: 'this' | 'that']: a; } // expected to work, actual doesn't work
</code></pre></div>
<p dir="auto">As a heavy user of Typescript now there's one very annoying thing that I face all the time. It's the bad (or lack of) support for <code class="notranslate">Function.prototype.apply/call/bind</code>.</p>
<p dir="auto">I don't know if this has been requested previously, but this is a big thing to me and I'd like to ask for a solution. Like it or not, <code class="notranslate">bind</code> is used a lot in javascript. Returning <code class="notranslate">any</code> is not a good solution IMHO. Functions are first-class citizens in Javascript, which is one of the reasons that it's the best language to me, but they're not so much in Typescript.</p>
<p dir="auto">I don't have a syntax in mind unfortunately, so this is an open discussion. If anyone has any ideas please step in.</p>
<p dir="auto">Cheers,</p>