Using Vue3's script setup syntax and getting a weird ts error when assigning a variable as a prop value.
I have a type definition for Stuff: 'item' | 'box' | 'area' and I'm using that PropType my prop kind in the SearchBar component.
const props = defineProps({
kind: { type: String as PropType<Stuff> },
placeholder: String,
})
However when I fill that prop in on the component with a variable that has the value of 'item' I get this error:
Type 'string' is not assignable to type 'Stuff | undefined'.
I've seen this sort of error mentioning string and String before so there's even an error in the casing of string (I know TS uses lowercase and Vue uses Pascalcase).
If anyone has a good workaround or any advice I would really appreciate it!
