#Overwrite a property in ts
type Modify<T, R> = Omit<T, keyof R> & R
e.g. overwrite children with a more specific type
export type Stack = Modify<Group, { children: Element[] }>
type Modify<T, R> = Omit<T, keyof R> & R
e.g. overwrite children with a more specific type
export type Stack = Modify<Group, { children: Element[] }>