fix TS props error

This commit is contained in:
Andreani Jean
2023-01-30 11:11:37 +01:00
parent 47fc762ab5
commit 1a5404f587

View File

@@ -15,15 +15,14 @@
</template>
<script lang="ts" setup>
interface Props {
text: string
path: string
look: string
type: string
alt: string
icon: string
}
const props = defineProps<Props>()
const props = defineProps({
text: { type: String },
path: { type: String },
look: { type: String },
type: { type: String },
alt: { type: String },
icon: { type: String }
})
</script>
<style scoped>