I need to create an object from an interface which extends from another interface, but I need to set all the parents' properties and they are a lot of. Is it possible to make them optional?
Example:
interface Auto {
radio: any;
}
interface Mazda extends Auto {
// mazda properties
}
const m = <Mazda>{
// just mazda properties
}
Actually I need that the parent properties mappend on the son to be optional, with Partial would be needed to create a property containing a parent object, but I want to extend and to have all the extended properties as optional.