node-fetch
node-fetch copied to clipboard
fix: Add `ArrayBuffer` and views to the allowed `BodyInit` types
Purpose
The previous type definitions produced an error when assigning an ArrayBuffer or an ArrayBufferView to the Request body. However, these cases are actually handled in the code, so they should not produce an error.
Changes
Add ArrayBufferLike and ArrayBufferView to the BodyInit union.