node-fetch icon indicating copy to clipboard operation
node-fetch copied to clipboard

fix: Add `ArrayBuffer` and views to the allowed `BodyInit` types

Open cprecioso opened this issue 3 years ago • 0 comments

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.

cprecioso avatar Mar 13 '22 20:03 cprecioso