Repository navigation
Add Headers to HeadersInit - #321
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 |
|
Mohamed Hegazy (@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 |
Mohamed Hegazy (@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
|
|
Mohamed Hegazy (@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