if we assume a type Crumb defined as
type Crumb = { id: string; title: string; href?: string };
and we have the type Crumbs (with an s at the end) defined as
type Crumbs = (Crumb | Crumb[])[];
how could i then create a 3rd type that's practically a duplicate of Crumbs but with the id key omitted?
My current solution is as such:
type SimpleCrumbs = (Omit<Crumb, "id"> | Omit<Crumb, "id">[])[];
and it works how i want it to, but i'd prefer not having code duplication. Essentially i want to "transform" Crumbs into a nearly identical type, but with the id key omitted.
