Skip to content

Commit 3bf5bb5

Browse files
chore: use defineProps type syntax (vuejs#2403)
1 parent aa8ae47 commit 3bf5bb5

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

src/ecosystem/themes/ThemeListItem.vue

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ import { computed } from 'vue'
33
import { VTLink } from '@vue/theme'
44
import ThemeProduct from './ThemeProduct.vue'
55
6-
const props = defineProps({
7-
provider: { type: Object, required: true }
8-
})
9-
10-
const regex = /\[([^\[]+)\](\(.*\))/gm
6+
const props = defineProps<{
7+
provider: Record<string, any>
8+
}>()
119
1210
const description = computed(() => {
1311
// replace markdown link to html tag.

src/ecosystem/themes/ThemeProduct.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<script setup lang="ts">
22
import { VTLink } from '@vue/theme'
33
4-
const props = defineProps({
5-
product: { type: Object, required: true }
6-
})
4+
const props = defineProps<{
5+
product: Record<string, any>
6+
}>()
77
</script>
88

99
<template>

0 commit comments

Comments
 (0)