title: TypeScript Optional function in Interface
body: <p>Is it possible to create an Interface in TypeScript with optional function?</p>
  
  <pre><code>interface IElement {
    name: string;
    options: any;
    type: string;
    value?: string;
    validation(any): boolean; // --&gt; should be optional.
  
  }
  </code></pre>