title: How to specify object type in function call
body: <p>If I am calling a function that takes <code>any</code> how do I specify the type of an object literal that is passed in directly (without creating a local variable). This doesn't work:</p>
  
  <pre class="lang-js prettyprint-override"><code>      aMessageChannel.port1.postMessage({
          foo: 1,
          bar: 2,
        }: MyMessageType);
  </code></pre>