Replies: 2 comments 1 reply
-
I had the same problem. I found that for myself it was due to the nesting of interfaces. But then when messily combining all of my nested interfaces into a single interface it worked. For your example it would be: |
Beta Was this translation helpful? Give feedback.
-
To change this, we need to modify the |
Beta Was this translation helpful? Give feedback.
-
I've really enjoyed playing with Honojs.
I built an API that returns
NoteModel[]
.the return type is interfered as:
When I list the contents in my react app, I see the
NoteModel
data, but typescript infers it as a string. I'm using react-query for reference.This is clearly by design, I just looking to understand why.
Then a follow-up: how am I supposed to loop of this data and use it in my frontend app?
Beta Was this translation helpful? Give feedback.
All reactions