Answer Overflow Logo
Change Theme
Search Answer Overflow
GitHub
Add Your Server
Login
Home
Popular
Topics
Gaming
Programming
Ádám Metál [BP.Mentor]
Posts
Comments
N
Nuxt
•
Created by Yurii_Poliakov on 4/10/2024 in
#❓・help
Error using zod based type in defineProps<>()
I'm not the biggest nuxt dev just now, i'm still learning this stuff. (coming from nextjs) but i'm also like to use zod. And for me its working fine.
<script lang="ts" setup>
const props = defineProps<{
card: ScryCard;
}>();
</script>
<script lang="ts" setup>
const props = defineProps<{
card: ScryCard;
}>();
</script>
4 replies
N
Nuxt
•
Created by Yurii_Poliakov on 4/10/2024 in
#❓・help
Error using zod based type in defineProps<>()
https://github.com/devmetal/mtg-guessing-game-nuxt/blob/main/utils/zCard.ts
4 replies
N
Nuxt
•
Created by Yurii_Poliakov on 4/10/2024 in
#❓・help
Error using zod based type in defineProps<>()
Hi, i have a working example for you. 🙂
4 replies