Suppose I have the following code snippet:
class Arachnid {
numberOfLegs: number = 8;
}
export class Spider extends Arachnid {
numberOfEyes: number = 2;
}
Is there a method to create a type that only includes the numberOfEyes property from Spider?
I cannot use:
type WolfSpider = Omit<Spider, keyof Arachnid>
since Arachnid is not exported. How can this be achieved without relying on modifications by the library author?