Skip to content

Commit 28016fc

Browse files
NeeshSamsicarwack
andauthored
fix: Apply suggestion from @carwack for better TS support
Co-authored-by: Sybren W <sybren.willemot@gmail.com>
1 parent ff4be8b commit 28016fc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/components/Button/Base.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ const props = withDefaults(
1818
)
1919
2020
const el = useTemplateRef('el')
21-
const slots = useSlots()
21+
const slots = defineSlots<{
22+
default?: () => unknown;
23+
}>()
2224
const iconOnly = computed(() => !!props.classicon && !slots.default)
2325
2426
defineExpose({

0 commit comments

Comments
 (0)