Skip to content

Commit

Permalink
chore(clipboard): expose Clipboard struct (#1185)
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir authored Apr 15, 2024
1 parent 3dca7ff commit 27b258c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changes/clipboard-expose-struct.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"clipboard-manager": "patch"
---

Expose `Clipboard` struct
4 changes: 2 additions & 2 deletions plugins/clipboard-manager/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down

0 comments on commit 27b258c

Please sign in to comment.