title: Override method with different argument types in extended class - Typescript
body: <p>I want to override a method and pass different argument types to it:</p>
  
  <pre><code>class Base {
      public myMethod(myString: string): undefined {
          return;
      }
  }
  
  class Child extends Base {
      public myMethod(myNumber: number): undefined {
          return super.myMethod(String(myNumber));
      }
  }
  </code></pre>
  
  <p>Yet this yields a typescript error:</p>
  
  <blockquote>
    <p>Property 'myMethod' in type 'Child' is not assignable to the same
    property in base type 'Base'.   Type '(myNumber: number) => undefined'
    is not assignable to type '(myString: string) => undefined'.
        Types of parameters 'myNumber' and 'myString' are incompatible.
          Type 'string' is not assignable to type 'number'.</p>
  </blockquote>
  
  <p>Is there a way to do this without creating a typescript error?</p>