title: Alter method signature for child class in Typescript?
body: <p>In the example below (Typescript, 1.7+), what would I have to change to allow <code>B.callback</code> to have a different signature than <code>A.callback</code>?</p>
  
  <pre><code>class A {
      callback(result: number) {
      }
  }
  
  
  class B extends A {
      callback(result: number, option: number) {
      }
  }
  </code></pre>
  
  <p>Currently this gives <code>test.ts(7,7): error TS2415: Class 'B' incorrectly extends base class 'A'.</code></p>
  
  <p>In the real world my example is more complex, but I can dynamically  (more or less) <em>guarantee</em> (based on some configuration) that the requested parameters will be there. </p>