4 ms·
IIRC, in the past .json on fetch was taking the data type as a generic parameter. Then suddenly it got changed where the generic was removed and you need to cas
by kabes 4y ago
IIRC, in the past .json on fetch was taking the data type as a generic parameter. Then suddenly it got changed where the generic was removed and you need to cast it yourself. I wonder why that was done.
- ht85 4y agoIt was likely done to force the use of a cast (`as ...`) that is easily identified as an unsafe operation, whereas type parameters are not.