Currently, I am working on creating an unchangeable, nested data structure that also incorporates inheritance. To achieve this, I am using the Readonly generic type. In order to create different types within this structure, one of these Readonly types needs to extend another.
type Person = Readonly<{
name : string
}>
type Student = Readonly<{
school : string
}>
My goal is for the Student type to inherit from the Person type and maintain the readonly name property.