You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
lib.d.ts has a wrong definition of HeadersInit #19656
Activity
mhegazy commentedon Nov 1, 2017
PRs welcomed. You can find more information about contributing lib.d.ts fixes at https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md#contributing-libdts-fixes.
mikemonji commentedon Jan 10, 2018
Instead of:
fetch('/some-url', { headers: { 'Some-Header-Name': 'Value' } });
Try:
let headers: any = { headers: { 'Some-Header-Name': 'Value' } };
fetch('/some-url', headers);