Hello, I have some problem that check nullable field of class member variable.
class Parent {
name: string;
}
class Child {
parent?: Parent;
}
const child = new Child();
child.parent = new Parent();
// this line problem
child satisfies Omit<Child, 'parent'> & { parent: Parent };
console.log(child.parent);
I want get non-nullable parent with child instance. But I assign concrete parent variable to child.parent but TypeScript cannot aware this assignment operation. How can I fix it?