Skip to content

Commit

Permalink
fix(svelte): properly type context
Browse files Browse the repository at this point in the history
  • Loading branch information
cschroeter committed Nov 28, 2024
1 parent 95bf6ec commit d0bf99e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script module lang="ts">
import type { Snippet } from 'svelte'
import type { UseAvatarContext } from './use-avatar-context'
export interface AvatarContextProps {
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
api?: (avatar: UseAvatarContext) => any
api?: Snippet<[UseAvatarContext]>
}
</script>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { Avatar } from '@ark-ui/svelte/avatar'
import { Avatar } from '@ark-ui/svelte/avatar'
</script>

<Avatar.Root>
Expand Down

0 comments on commit d0bf99e

Please sign in to comment.