Skip to content

Commit 02f8146

Browse files
committed
Set to never props not used in polymoph type
1 parent 0b7fb34 commit 02f8146

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Header/Header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ export namespace HeaderProps {
8282

8383
export type Link = Common & {
8484
linkProps: RegisteredLinkProps;
85-
buttonProps?: undefined;
85+
buttonProps?: never;
8686
};
8787

8888
export type Button = Common & {
89-
linkProps?: undefined;
89+
linkProps?: never;
9090
buttonProps: React.DetailedHTMLProps<
9191
React.ButtonHTMLAttributes<HTMLButtonElement>,
9292
HTMLButtonElement

0 commit comments

Comments
 (0)