Skip to content

fix: Type override for BreadcrumbsRouter#80

Open
xueyawei wants to merge 1 commit into
icd2k3:masterfrom
xueyawei:master
Open

fix: Type override for BreadcrumbsRouter#80
xueyawei wants to merge 1 commit into
icd2k3:masterfrom
xueyawei:master

Conversation

@xueyawei

@xueyawei xueyawei commented May 9, 2023

Copy link
Copy Markdown

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

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

@xueyawei xueyawei marked this pull request as ready for review May 9, 2023 02:05
@xueyawei

xueyawei commented May 9, 2023

Copy link
Copy Markdown
Author

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

type B = A & {
a: number
}

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

@xueyawei xueyawei changed the title FIX: Type override for BreadcrumbsRouter fix: Type override for BreadcrumbsRouter May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant