We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8beacea commit 991c6cdCopy full SHA for 991c6cd
1 file changed
src/components/Icon/Icon.vue
@@ -7,18 +7,10 @@
7
</template>
8
9
<script lang="ts" setup>
10
-import { type PropType } from 'vue';
11
import InlineSvg from 'vue-inline-svg';
12
import type { Components } from '@/types';
13
14
-defineProps({
15
- icon: {
16
- type: Object as PropType<Components.Icon.Icon>,
17
- required: true,
18
- validator: (icon: Components.Icon.Icon): boolean => {
19
- // Only allow undefined prop or icon that includes ".svg" in the path
20
- return icon.src.includes('.svg');
21
- }
22
23
-});
+defineProps<{
+ icon: Components.Icon.Icon;
+}>();
24
</script>
0 commit comments