Client Response
I have a problem where what my API returns is not what the TS types say it is:
For example what I actually receive when logging
res
is simply an object that looks like this {email, message}. But there is no ok, json() that my IDE says there should be.
This is the route:
5 Replies
Seems to be working fine on my end
I am using ofetch as my fetch fn. could this be related?
ok when I change it to this it works: (use normal fetch)
neat
So is this issue resolved for you?