Skip to content

Commit

Permalink
fix ts bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutomic committed Dec 13, 2024
1 parent 60ba7af commit f66e392
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/api_common/src/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>,
#[cfg_attr(feature = "full", ts(optional))]
pub max_size: Option<i32>,
}

Expand All @@ -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<String>,
#[cfg_attr(feature = "full", ts(optional))]
pub max_size: Option<i32>,
}

Expand Down

0 comments on commit f66e392

Please sign in to comment.