Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

vue object array type props

<script setup lang="ts">
import { defineProps, type PropType } from "vue";
defineProps({
  type: Array as PropType<MyObject[]>,
  required: true,
  validator: ...
})
</script>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #vue #object #array #type #props
ADD COMMENT
Topic
Name
7+4 =