mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
The current typing supports passing headers through the Headers class, but the spec also supports passing headers as an object mapping header names to header values. See the [Github example](https://github.com/github/fetch#post-json).