Fixing ts_option.

This commit is contained in:
Dessalines 2025-01-16 15:36:48 -05:00
parent dd66ef57b8
commit d9daa3546b

View file

@ -55,6 +55,7 @@ use ts_rs::TS;
#[cfg_attr(feature = "full", ts(export))] #[cfg_attr(feature = "full", ts(export))]
/// Searches the site, given a search term, and some optional filters. /// Searches the site, given a search term, and some optional filters.
pub struct Search { pub struct Search {
#[cfg_attr(feature = "full", ts(optional))]
pub search_term: Option<String>, pub search_term: Option<String>,
#[cfg_attr(feature = "full", ts(optional))] #[cfg_attr(feature = "full", ts(optional))]
pub community_id: Option<CommunityId>, pub community_id: Option<CommunityId>,