I'm using Nuxt 3 / Vue 3 defineProps
and TypeScript and want to infer types prop types from TypeScript types.
import { User } from '~/types/types' const props = defineProps({ users: { type: Array, // User[]? }, })
In this example, how do I make the users
property be of type User[]
?
Using Vue’s
PropType