Add support for fetch() headers (#727)

This commit is contained in:
qti3e 2018-09-12 23:46:42 +04:30 committed by Ryan Dahl
parent cb6c78c6d2
commit 41c70b154f
8 changed files with 137 additions and 21 deletions

2
js/fetch_types.d.ts vendored
View file

@ -13,7 +13,7 @@ See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
*******************************************************************************/
type HeadersInit = Headers | string[][] | Record<string, string>;
type HeadersInit = string[][] | Record<string, string>;
type BodyInit =
| Blob
| BufferSource