fix ts bindings

This commit is contained in:
Felix Ableitner 2024-12-13 15:28:16 +01:00
parent 60ba7af2a1
commit 7c771d2113
3 changed files with 10 additions and 2 deletions

View file

@ -67,6 +67,10 @@
# Maximum size for user avatar, community icon and site icon.
max_avatar_size: 512
# Maximum size for user, community and site banner.
#
# TODO: Unfortunately pictrs can only resize images to fit in a*a square, no rectangle.
# Otherwise we have to use crop, or use max_width/max_height which throws error
# if image is larger.
max_banner_size: 512
}
# Email sending configuration. All options except login/password are mandatory

View file

@ -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>,
}
@ -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>,
}