remove unneccesary type

This commit is contained in:
byeoon 2025-02-04 22:25:29 -05:00
parent 6020e938f1
commit 1302a1c7fc

View file

@ -36,11 +36,9 @@ interface Sticker {
type: number; type: number;
} }
type Data = Sticker;
const StickerExt = [, "png", "png", "json", "gif"] as const; const StickerExt = [, "png", "png", "json", "gif"] as const;
function getUrl(data: Data) { function getUrl(data: Sticker) {
if (data.format_type === 4) if (data.format_type === 4)
return `https:${window.GLOBAL_ENV.MEDIA_PROXY_ENDPOINT}/stickers/${data.id}.gif?size=4096&lossless=true`; return `https:${window.GLOBAL_ENV.MEDIA_PROXY_ENDPOINT}/stickers/${data.id}.gif?size=4096&lossless=true`;