Re: [w3c/clipboard-apis] Add clipboard IDL description. (#158)

@snianu commented on this pull request.



> +  <h4 typedef>ClipboardItemDataType</h4>
+  <p>
+    It is a {{DOMString}} or [=Blob=] type. This contains the payload corresponding to the MIME type while creating a [=ClipboardItem=] object.
+  </p>
+  <h4 typedef>ClipboardItemData</h4>
+  <p>
+   It is a [=Promise=] to the {{ClipboardItemDataType}}.
+  </p>
+
+ <h3 id="clipboard-interface">Clipboard Interface</h3>
+
+  <pre class="idl" data-highlight="webidl">
+  typedef sequence&lt;ClipboardItem> ClipboardItems;
+
+  [SecureContext, Exposed=Window] interface Clipboard : EventTarget {
+    Promise&lt;ClipboardItems> read();

Done.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/clipboard-apis/pull/158#discussion_r740585759

Received on Monday, 1 November 2021 23:01:23 UTC