I have a child class that inherit from a parent class. The child class this is unable to get the typing of the parent class
class Foo {
foo: string = ''
merge(opts: Partial<this>): this { return this }
}
class Bar extends Foo {
bar() {
return this.merge({ // typing error because foo is not declared as a property of Bar
foo: '3'
})
}
}