- From: snianu <notifications@github.com>
- Date: Tue, 18 Jan 2022 17:15:47 -0800
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 19 January 2022 01:15:59 UTC
@snianu commented on this pull request. > - Promise<Blob> getType(DOMString type); - }; + <pre class="example javascript" highlight=js> + const format1 = 'text/plain'; + const promise_text_blob = Promise.resolve(new Blob(['hello'], {type: format1})); + const clipboardItemInput = new ClipboardItem( + {[format1]: promise_text_blob}, + {presentationStyle: "unspecified"}); + </pre> + + <dt><code><var>clipboardItem</var>.getType(<var>type</var>)</code> + <dd><p>Returns a [=Promise=] to the {{Blob}} corresponding to <var>type</var>.</p> Added `[=representation/mime type=]` -- Reply to this email directly or view it on GitHub: https://github.com/w3c/clipboard-apis/pull/158#discussion_r787274749 You are receiving this because you are subscribed to this thread. Message ID: <w3c/clipboard-apis/pull/158/review/856145797@github.com>
Received on Wednesday, 19 January 2022 01:15:59 UTC