Hello, TS team,
interface MyInterface {
optionalProp?: string;
}
class MyClass implements MyInterface {
// TypeScript will throw an error here, because MyClass has no matching properties
}
Why does ts(2559) error generate based on this code? If optionalProp is optional in MyInterface, why does the class have to define it?