You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
got same type error thanks!
the solution works for me by editing node_module file
could you explain more about patch-package example?
patch-package is an NPM module I use it to patch module until a PR was approved.
"patch-package lets app authors instantly make and keep fixes to npm dependencies .....No more waiting around for pull requests to be merged and published. No more forking repos just to fix that one tiny thing preventing your app from working..."
Describe the bug
A possible bug with type of Reference.
To Reproduce
yup.ref throws TS errors since its its
unknown
.Expected behavior
Expected is not to throw TS error.
Additional context
Since Reference is typed already, adding generic type to the create function seems to solve this.
yup/src/Reference.ts
Line 14 in b97c39d
Also this fix can be applicable using @types/yup.
Here is a patch-package solution
The text was updated successfully, but these errors were encountered: