mirror of
https://github.com/electron/electron.git
synced 2026-10-28 11:44:46 +08:00
* docs: narrow clipboardItem.getType() return type from its MIME type Type getType() with a generic MIME type parameter and a conditional return type so a literal `electron application/bookmark` resolves to a ClipboardBookmark, any other literal MIME type resolves to a Blob, and a non-literal string still resolves to the union. Adds ts-smoke cases for all three and drops the now-unneeded `instanceof Blob` check from the `text/uri-list` example. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HmVsAQiHawruFHijTtkzV9 * build: bump @electron/docs-parser to 3.0.2 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HmVsAQiHawruFHijTtkzV9 --------- Co-authored-by: Claude <noreply@anthropic.com>