title: Override res.end with TypeScript
body: <p>I need to override method res.end with next signature: </p>
  
  <pre><code>res.end = (data: any, encoding: string)
  </code></pre>
  
  <p>But TS returns next error: </p>
  
  <pre><code>Type '(data: any, encoding: string) =&gt; void' is not assignable to type '{ 
  (cb?: (() =&gt; void) | undefined): void; 
  (chunk: any, cb?: (() =&gt; void) | undefined): void; 
  (chunk: any, encoding: string, cb?: (() =&gt; void) | undefined): void; 
  }'.ts(2322)
  </code></pre>
  
  <p>I had tried to pass empty callback, but it have not helped: </p>
  
  <pre><code>res.end = (data: any, encoding: string, callback: `() =&gt;void`): void
  </code></pre>