From f66e3924f3fef427adc83c667dd8cd5a57afb5d1 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Fri, 13 Dec 2024 15:28:16 +0100 Subject: [PATCH] fix ts bindings --- crates/api_common/src/image.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/api_common/src/image.rs b/crates/api_common/src/image.rs index df033f2858..c28832921a 100644 --- a/crates/api_common/src/image.rs +++ b/crates/api_common/src/image.rs @@ -9,7 +9,9 @@ use url::Url; #[cfg_attr(feature = "full", derive(TS))] #[cfg_attr(feature = "full", ts(export))] pub struct ImageGetParams { + #[cfg_attr(feature = "full", ts(optional))] pub file_type: Option, + #[cfg_attr(feature = "full", ts(optional))] pub max_size: Option, } @@ -27,7 +29,9 @@ pub struct DeleteImageParams { #[cfg_attr(feature = "full", ts(export))] pub struct ImageProxyParams { pub url: String, + #[cfg_attr(feature = "full", ts(optional))] pub file_type: Option, + #[cfg_attr(feature = "full", ts(optional))] pub max_size: Option, }