title: Passing function as parameter in Typescript: Expected 0 arguments, but got 1.ts
body: <p>I am trying to pass in this <code>doSomething</code> function into <code>performAction</code>, but the error I'm getting is <code>Expected 0 arguments, but got 1</code></p>
  
  <pre><code>type someType = {
    name: string,
    id: string
  }
  
  function doSomethingFn(props: someType) {
    console.log(props.name + " " + props.id);
  }
  
  function performAction(doSomething: () =&gt; void) {
    doSomething({
      name: "foo",
      id: "bar"
    });
  }
  
  performAction(doSomethingFn);
  </code></pre>
  
  <p>Am I using the proper syntax for Typescript?</p>