Skip to content

Commit

Permalink
improve types
Browse files Browse the repository at this point in the history
  • Loading branch information
8845musign committed Aug 8, 2024
1 parent 92b034e commit 19b1e31
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Button/ButtonTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ export type ButtonProps = Omit<
BaseProps &
OnlyButtonProps;

export type LinkButtonProps = Omit<ComponentPropsWithRef<'a'>, 'children' | 'className' | keyof BaseProps> &
export type LinkButtonProps = Omit<
ComponentPropsWithRef<'a'>,
'children' | 'className' | keyof BaseProps | keyof OnlyLinkButtonProps
> &
BaseProps &
OnlyLinkButtonProps;

0 comments on commit 19b1e31

Please sign in to comment.