use-react-router-breadcrumbs icon indicating copy to clipboard operation
use-react-router-breadcrumbs copied to clipboard

fix: Type override for BreadcrumbsRouter

Open xueyawei opened this issue 1 year ago • 1 comments

Issue: type override cannot use union type, it will not work.

Solution: using Omit to delete original children first then do union type.

xueyawei avatar May 09 '23 02:05 xueyawei

interface A { a: string, b: string, }

type B = A & { a: number }

property 'a' in type B will be 'never' type.

xueyawei avatar May 09 '23 02:05 xueyawei