Skip to content

Commit

Permalink
fix: button attributes type
Browse files Browse the repository at this point in the history
  • Loading branch information
paring-chan committed Jan 3, 2025
1 parent 56deb10 commit 580b602
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/Button.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import { useActions, type ActionArray } from 'svelte-component-actions'
import Icon from './Icon.svelte'
import { emptyMeltElement, melt, type AnyMeltElement } from '@melt-ui/svelte'
import type { HTMLAnchorAttributes, HTMLAttributes } from 'svelte/elements'
import type { HTMLAnchorAttributes, HTMLButtonAttributes } from 'svelte/elements'
type BaseProps =
| ({ link?: false } & HTMLAttributes<HTMLButtonElement>)
| ({ link?: false } & HTMLButtonAttributes)
| ({ link: true } & HTMLAnchorAttributes)
type Props = BaseProps & {
Expand Down

0 comments on commit 580b602

Please sign in to comment.