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
This implies that the options argument only allows Promises of Blobs and strings, and the spec says so too; however, some browsers allow Blobs and strings to be used directly, and MDN seems to document that behavior too.
I think https://webidl.spec.whatwg.org/#es-promise means that conversion from ECMAScript value V to an IDL Promise<T> value effectively performs new Promise((resolve, reject) => resolve(V)).
https://github.com/microsoft/TypeScript/blob/a21024dbe7e79dc018e4193f27ecb66e0465b638/lib/lib.dom.d.ts#L3555
This implies that the options argument only allows
Promise
s ofBlob
s andstring
s, and the spec says so too; however, some browsers allowBlob
s andstring
s to be used directly, and MDN seems to document that behavior too.Related: microsoft/TypeScript#46116
The text was updated successfully, but these errors were encountered: