superfaceai / one-sdk-js

1️⃣ One Node.js SDK for all the APIs you want to integrate with
https://superface.ai
MIT License
47 stars 3 forks source link

Shape HeadersInit from FetchParameters #293

Closed freaz closed 2 years ago

freaz commented 2 years ago

Description

Added function to format Record to array of tuples which is expected in HeadersInit and support duplicate headers.

The original test is indented, so it looks long. So, check it with hidden whitespaces.

Motivation and Context

TypeScript compiler was complaining about the shape of headersInit data.

Types of changes

Checklist: