From ebd98144126cfba601d996b2bd07968098c233b9 Mon Sep 17 00:00:00 2001 From: Danial Raza Date: Tue, 22 Apr 2025 01:11:59 +0200 Subject: [PATCH] refactor(ImageSize): allow other sizes (#1221) --- deno/rest/v10/mod.ts | 2 +- deno/rest/v9/mod.ts | 2 +- rest/v10/index.ts | 2 +- rest/v9/index.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deno/rest/v10/mod.ts b/deno/rest/v10/mod.ts index b3e3ae3e..97a53a53 100644 --- a/deno/rest/v10/mod.ts +++ b/deno/rest/v10/mod.ts @@ -1087,7 +1087,7 @@ Object.freeze(Routes); export const StickerPackApplicationId = '710982414301790216'; -export type ImageSize = 1_024 | 2_048 | 4_096 | 16 | 32 | 64 | 128 | 256 | 512; +export type ImageSize = 1_024 | 2_048 | 4_096 | 16 | 32 | 64 | 128 | 256 | 512 | (number & {}); export enum ImageFormat { JPEG = 'jpeg', diff --git a/deno/rest/v9/mod.ts b/deno/rest/v9/mod.ts index edcb5485..cb1bee0e 100644 --- a/deno/rest/v9/mod.ts +++ b/deno/rest/v9/mod.ts @@ -1096,7 +1096,7 @@ Object.freeze(Routes); export const StickerPackApplicationId = '710982414301790216'; -export type ImageSize = 1_024 | 2_048 | 4_096 | 16 | 32 | 64 | 128 | 256 | 512; +export type ImageSize = 1_024 | 2_048 | 4_096 | 16 | 32 | 64 | 128 | 256 | 512 | (number & {}); export enum ImageFormat { JPEG = 'jpeg', diff --git a/rest/v10/index.ts b/rest/v10/index.ts index 4be06131..9af64886 100644 --- a/rest/v10/index.ts +++ b/rest/v10/index.ts @@ -1087,7 +1087,7 @@ Object.freeze(Routes); export const StickerPackApplicationId = '710982414301790216'; -export type ImageSize = 1_024 | 2_048 | 4_096 | 16 | 32 | 64 | 128 | 256 | 512; +export type ImageSize = 1_024 | 2_048 | 4_096 | 16 | 32 | 64 | 128 | 256 | 512 | (number & {}); export enum ImageFormat { JPEG = 'jpeg', diff --git a/rest/v9/index.ts b/rest/v9/index.ts index 7b671d38..0cb77172 100644 --- a/rest/v9/index.ts +++ b/rest/v9/index.ts @@ -1096,7 +1096,7 @@ Object.freeze(Routes); export const StickerPackApplicationId = '710982414301790216'; -export type ImageSize = 1_024 | 2_048 | 4_096 | 16 | 32 | 64 | 128 | 256 | 512; +export type ImageSize = 1_024 | 2_048 | 4_096 | 16 | 32 | 64 | 128 | 256 | 512 | (number & {}); export enum ImageFormat { JPEG = 'jpeg',