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