fetch does not raise a type error, but ky does. #738
Answered by
sindresorhus
Sep 27, 2025
Replies: 1 comment
|
This is because the Ky types are stricter than Fetch. It prevents you from adding a body on HTTP methods that don't support it. |
0 replies
Answer selected by
sindresorhus
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

This is because the Ky types are stricter than Fetch. It prevents you from adding a body on HTTP methods that don't support it.