rowtype-yoga / purescript-fetch

MIT License
25 stars 2 forks source link

Why not json :: CoreResponse.Response -> Aff Json ? #15

Open srghma opened 1 month ago

srghma commented 1 month ago

Why

https://github.com/rowtype-yoga/purescript-fetch/blob/f2513c916b8652392b341211f80b007f482f9615/src/Fetch/Internal/Response.purs#L50

Is

json :: CoreResponse.Response -> Aff Foreign

And not

json :: CoreResponse.Response -> Aff Json?

Can it return something else?

sigma-andex commented 2 weeks ago

check out https://github.com/rowtype-yoga/purescript-fetch?tab=readme-ov-file#yoga-json