usage of spread operator with HeadersInit leads to unexpected behavior or errors
jsejcksn opened this issue · comments
Jesse Jackson commented
Here's an example from json
:
Lines 227 to 252 in 424d5b7
On line 249, init.headers
is of type HeadersInit
(which is Headers | string[][] | Record<string, string>
). However, if it is not Record<string, string>
, this usage of the spread operator will lead to unexpected behavior or errors.