Skip to content

Commit

Permalink
doc: clarify how to register custom types πŸ“
Browse files Browse the repository at this point in the history
  • Loading branch information
kareemmahlees committed Aug 7, 2024
1 parent cc11448 commit 44e03e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,15 @@
//! ```rust
//! use serde::{Serialize, Deserialize};
//! use specta::Type;
//! use tauri_specta::Builder;
//!
//! #[derive(Serialize, Deserialize, Type)]
//! pub struct MyStruct {
//! a: String
//! }
//!
//! // Call `ty()` as much as you want.
//! let mut builder = Builder::<tauri::Wry>::new().ty::<MyStruct>();
//! ```
//!
//! ## Events
Expand Down

0 comments on commit 44e03e6

Please sign in to comment.