cyclic structure error when using typescript generics with vue #6927
Unanswered
amk-dev
asked this question in
Help/Questions
Replies: 1 comment
-
I'm running into the same issue, but it seems like using Vue 3.3's function signature syntax resolves this issue: https://vuejs.org/api/general.html#function-signature |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was trying to use typescript generics with vue,
but in the below example ( a simple one that removes unwanted details ) when running vue-tsc i'm getting
Constraints
I've to use PropType because the real example is a complex type.
what is the best way to fix this error ? how can i annotate the return type for this function ?
Thank you for your help.
Beta Was this translation helpful? Give feedback.
All reactions