title: Implementing TypeScript interface with bare function signature plus other fields
body: <p>How do I write a class that implements this TypeScript interface (and keeps the TypeScript compiler happy):</p>
  
  <pre><code>interface MyInterface {
      (): string;
      text2(content: string);
  }
  </code></pre>
  
  <p>I saw this related answer:
  <a href="https://stackoverflow.com/questions/12769636/how-to-make-a-class-implement-a-call-signature-in-typescript">How to make a class implement a call signature in Typescript?</a></p>
  
  <p>But that only works if the interface only has the bare function signature. It doesn't work if you have additional members (such as function text2) to be implemented.</p>