Function defineSlots() - Typescript
This macro can be used to provide type hints to
IDEs for slot name and props type checking.
<script setup lang="ts">
const slots = defineSlots<{
default(props: { msg: string }): any
}>()
</script>
This macro can be used to provide type hints to
IDEs for slot name and props type checking.
<script setup lang="ts">
const slots = defineSlots<{
default(props: { msg: string }): any
}>()
</script>