I'm trying to setup an immutable, nested data structure with inheritance. Types are built with the Readonly generic type and need one of such Readonly types to extend another.
type Person = Readonly<{
name : string
}>
type Student = Readonly<{
school : string
}>
I need Student to extend Person and have the readonly name property.