mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-06-06 13:53:54 +02:00
refactor(clipboard): refactor clipboard function arguments for better clarity about the needed type (#1218)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
---
|
||||
"clipboard-manager": "patch"
|
||||
---
|
||||
|
||||
Refactored the clipboard Rust APIs for more clarity and consistency:
|
||||
|
||||
- Changed `Clipboard::write_text` to take a string type instead of an enum.
|
||||
- Changed `Clipboard::read_text` to return a string type instead of an enum.
|
||||
- Changed `Clipboard::write_html` to take 2 string arguments instead of an enum.
|
||||
- Changed `Clipboard::write_image` to take a reference to a `tauri::Image` instead of an enum.
|
||||
- Removed `ClipKind` and `ClipboardContents` enums.
|
||||
Reference in New Issue
Block a user