Is my understanding correct that the below class is a generic type that requires all fields coming from the inferred interface of SomeOtherClass?
export class MyClass<T extends SomeOtherClass> extends SomeOtherClass {...}
In other words, if SomeOtherClass implements an interface called OtherInterface, and this interface looks like this:
interface OtherInterface {
someField: string;
}
Then MyClass has to have a static property that is of type string called someField, but in addition it can have any other type of property, because it is a generic T?
At least this is what I was trying to achieve with the above.