Sfoglia il codice sorgente

fix(ui-conversation): document writeClipboard @param for export JSDoc gate

07akioni 2 mesi fa
parent
commit
972b3f3a30

+ 4 - 1
packages/client/ui-conversation/src/client/chat/message-chrome.ts

@@ -1,7 +1,10 @@
 // Shared chrome helpers for user/assistant IconActions rows: clipboard write
 // and the compact date+clock label from a session-event epoch.
 
-/** Best-effort clipboard write; rejections stay swallowed (no success chrome). */
+/**
+ * Best-effort clipboard write; rejections stay swallowed (no success chrome).
+ * @param text - Plain text to place on the clipboard.
+ */
 export async function writeClipboard(text: string): Promise<void> {
   // lib.dom types clipboard non-optional, but insecure contexts omit it —
   // that runtime gap is exactly what this guard detects.