type
WithoutChild
type WithoutChild<T> = T extends { child?: any } ? Omit<T, "child"> : TRemove a child snippet property when present.
type
type WithoutChild<T> = T extends { child?: any } ? Omit<T, "child"> : TRemove a child snippet property when present.