فهرست منبع

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

07akioni 2 ماه پیش
والد
کامیت
972b3f3a30
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      packages/client/ui-conversation/src/client/chat/message-chrome.ts

+ 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
 // Shared chrome helpers for user/assistant IconActions rows: clipboard write
 // and the compact date+clock label from a session-event epoch.
 // 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> {
 export async function writeClipboard(text: string): Promise<void> {
   // lib.dom types clipboard non-optional, but insecure contexts omit it —
   // lib.dom types clipboard non-optional, but insecure contexts omit it —
   // that runtime gap is exactly what this guard detects.
   // that runtime gap is exactly what this guard detects.