From 1302a1c7fc3e85276391d094aad8dc2f84d0ff4f Mon Sep 17 00:00:00 2001 From: byeoon <47872200+byeoon@users.noreply.github.com> Date: Tue, 4 Feb 2025 22:25:29 -0500 Subject: [PATCH] remove unneccesary type --- src/plugins/copyStickerLinks/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/plugins/copyStickerLinks/index.tsx b/src/plugins/copyStickerLinks/index.tsx index 39b97abc0..0e8c38b59 100644 --- a/src/plugins/copyStickerLinks/index.tsx +++ b/src/plugins/copyStickerLinks/index.tsx @@ -36,11 +36,9 @@ interface Sticker { type: number; } -type Data = Sticker; - const StickerExt = [, "png", "png", "json", "gif"] as const; -function getUrl(data: Data) { +function getUrl(data: Sticker) { if (data.format_type === 4) return `https:${window.GLOBAL_ENV.MEDIA_PROXY_ENDPOINT}/stickers/${data.id}.gif?size=4096&lossless=true`;