I was taking the CodeWithMosh react native course and in the course I was supposed to use yup for validation however even though I installed the same version which is 0.28.5 of yup as in the course I got this error when importing...
import * as Yup from "yup"
but I got this error :-
Could not find a declaration file for module 'yup'
then it says try npm i --save-dev @types/yup
so I tried doing that but it still didn't work
Does anyone know how to fix this problem?