title: TS2611: 'foo' is defined as a property in class 'A', but is overridden here in 'B' as an accessor
body: <p>I am facing a Typescript compilation error in my Angular app. Following is the sample code and error message.</p>
  <p>Would you please guide me to suppress this error. I think this code is correct as per the Javascript.</p>
  <pre class="lang-sh prettyprint-override"><code>- error TS2611: 'foo' is defined as a property in class 'A', but is overridden here in 'B' as an accessor.
  </code></pre>
  <pre><code>export class A {
    foo: string;
  }
  
  export class B extends A {
    f1;
    set foo(name) {
      this.f1 = name;
    }
    get foo() {
      return this.f1;
    }
  }
  </code></pre>
  <p>Editor's note: in the comments it emerged that both classes <code>A</code> and <code>B</code> are in third-party libraries.</p>