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
Should ClipboardItemData allow non-Promises? #1360
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)).
Activity
cpplearner commentedon Aug 6, 2022
I think https://webidl.spec.whatwg.org/#es-promise means that conversion from ECMAScript value
Vto an IDLPromise<T>value effectively performsnew Promise((resolve, reject) => resolve(V)).So yes, non-Promises should be accepted.
saschanaz commentedon Aug 18, 2022
It seems this is regressed at some point after #1102.
saschanaz commentedon Aug 18, 2022
TypeScript-DOM-lib-generator/baselines/dom.generated.d.ts
Lines 3644 to 3647 in fc5fe1a
Well actually it's there, so maybe it's just that TS should import the latest bits?