Use generics/template? #889
Unanswered
CapitaineToinon
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, I'm trying to validate api responses and all of them are wrapped in a
data
property like soAnd I wanted to make a generic type for that but it doesn't seem to work.
ReponseData seems to just accept whatever I throw at it with this setup and doesn't convert my data property to a CategoryData object. I there a way to make this work?
Beta Was this translation helpful? Give feedback.
All reactions