Is it possible in typescript to deeply remove a prop from a class in an array nested in another class? this way for example:
class Nested {
propX!: string;
propY!: string;
propZ!: string;
}
class Parent {
propA!: string;
propB!: number;
propC!: string;
nesteds!: Nested[];
}
// remove propZ from nesteds in Parrant class
class ParentInput implement Exclude<Parent, 'propC'|'nesteds.propZ'> {
//...
}
nestedsoccurs only at the top level?