From bb545e1bd9085097dea85e5a26203b056ae9857a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9B=90=EB=8D=94?= Date: Mon, 11 Jan 2021 13:03:10 +0900 Subject: [PATCH] types: added Image types --- types/index.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/types/index.ts b/types/index.ts index 881c9eb..7f02766 100644 --- a/types/index.ts +++ b/types/index.ts @@ -100,3 +100,16 @@ export type ReportCategory = | '기타' export type ListType = 'VOTE' | 'TRUSTED' | 'NEW' | 'PARTNERED' | 'CATEGORY' | 'SEARCH' + +export type ImageFormat = 'webp' | 'png' | 'jpg' | 'gif' +export type ImageSize = 16 | 32 | 64 | 128 | 256 | 512 | 1024 | 2048 | 4096 +export interface ImageOptions { + format?: ImageFormat + size?: ImageSize +} +export enum DiscordImageType { + EMOJI = 'emoji', + GUILD = 'guild', + USER = 'user', + FALLBACK = 'default' +} \ No newline at end of file