chore(clipboard): expose Clipboard struct (#1185)

This commit is contained in:
Amr Bashir
2024-04-15 10:53:32 +02:00
committed by GitHub
parent 3dca7ff5ea
commit 27b258cf31
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"clipboard-manager": "patch"
---
Expose `Clipboard` struct
+2 -2
View File
@@ -30,9 +30,9 @@ mod models;
pub use error::{Error, Result};
#[cfg(desktop)]
use desktop::Clipboard;
pub use desktop::Clipboard;
#[cfg(mobile)]
use mobile::Clipboard;
pub use mobile::Clipboard;
/// Extensions to [`tauri::App`], [`tauri::AppHandle`], [`tauri::WebviewWindow`], [`tauri::Webview`] and [`tauri::Window`] to access the clipboard APIs.
pub trait ClipboardExt<R: Runtime> {