a question for all the vue devs
how do you define props?
do you use the special typescript syntax:
or the other way:
3 Replies
i saw antfu use the first one but another person said that no one uses that in development
everyone uses the 2nd way
so im very confused
what do you guys use and prefer and why?
probably a variation of the first one where you declare the props interface above it
from the docs
pulled it from here https://vuejs.org/guide/typescript/composition-api.html
maybe a little zod with validation, would be interesting to try
interesting thanks