Skip to content

Commit

Permalink
fix(BaseAccordion): use ts generic for items content
Browse files Browse the repository at this point in the history
  • Loading branch information
stafyniaksacha committed Jan 23, 2024
1 parent d38a7d2 commit 5ce4d84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/base/BaseAccordion.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script setup lang="ts">
<script setup lang="ts" generic="T extends any">
const props = withDefaults(
defineProps<{
/**
Expand Down Expand Up @@ -27,7 +27,7 @@ const props = withDefaults(
/**
* The content of the accordion item.
*/
content: string
content: T
}[]
/**
Expand Down Expand Up @@ -57,7 +57,7 @@ const emits = defineEmits<{
/**
* The content of the accordion item.
*/
content: string
content: T
},
): void
}>()
Expand Down

0 comments on commit 5ce4d84

Please sign in to comment.