Closed MichaelDimmitt closed 2 years ago
@YousefED @icd2k3 , any thoughts on this solution?
anything you want changed. thanks!
Sorry @MichaelDimmitt - been a busy week - I'll look into this tomorrow, thank you!
This makes sense to me - and if anyone would prefer to import Route
directly from react-router
instead they can always make their own type for it.
adds breadcrumb to the Route type from react router
Note:
There may be a simpler way to add Type BreadCrumb to the type Route using an intersection: but this is what I could get working.
I do not know how to update just the param of a function type in typescript.