-
Notifications
You must be signed in to change notification settings - Fork 440
Add Headers to HeadersInit #321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
It is not missed - I have did it specially because the spec does not have it :-) |
For me this changes is a bit like change |
@mhegazy so why this changes should be but |
I did not want to go back to |
Indeed, |
|
type Record<K, V> = { [Symbol.iterator](): IterableIterator<[K, V]> } | { [x: K]: V }; This should also work for URLSearchParams receiving records. new URLSearchParams({ [Symbol.iterator]() { return new Map([['abc', 'bcd']]).entries() } }).toString()
// returns 'abc=bcd' |
Headers is not iterable in |
Filed microsoft/TypeScript#19806. |
But it is not spec :) Nobody known the truth: MDN has no case with |
that is not correct.. A |
@mhegazy could you please provide some examples to understand?
Under |
Here is an example : https://github.com/firebase/firebase-js-sdk/blob/0a6ad04befd820ec52b05040e86ff52a62e37fa5/packages/messaging/src/models/token-manager.ts#L173-L198
|
@mhegazy Sorry, but I still cannot recognize the difference. The spec says that According to this I have a few questions:
What do you mean under
Please correct me if I am somewhere wrong. |
|
Oh, I get it, thank you! |
Missed this in #315