Closed dlhck closed 1 year ago
I always wonder about this one: is this a flaw of Storyblok API? Or is this because the response can't handle integers?
The first screenshot above is straight from the "Published JSON" link in the actions dropdown on the story edit view. I think it is a flaw 😓
Currently the generated types are generic
number
but in reality numbers are a string in the json response:So I think we should switch to a
string
generic type instead to useparseFloat
without any type-casting.