Skip to content

Commit 05ed86f

Browse files
committed
fix: remove redundant code
1 parent 2150819 commit 05ed86f

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

packages/rest/src/lib/CDN.ts

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,26 +43,16 @@ export interface EmojiURLOptionsNotWebp extends BaseImageURLOptions {
4343
*/
4444
export type EmojiURLOptions = EmojiURLOptionsNotWebp | EmojiURLOptionsWebp;
4545

46-
export interface BaseAnimatedImageURLOptions extends BaseImageURLOptions {
46+
/**
47+
* The options used for image URLs that may be animated.
48+
*/
49+
export interface ImageURLOptions extends BaseImageURLOptions {
4750
/**
4851
* Whether to prefer the static asset.
4952
*/
5053
forceStatic?: boolean;
5154
}
5255

53-
export interface ImageURLOptionsWebp extends BaseAnimatedImageURLOptions {
54-
extension?: 'webp';
55-
}
56-
57-
export interface ImageURLOptionsNotWebp extends BaseAnimatedImageURLOptions {
58-
extension: Exclude<ImageExtension, 'webp'>;
59-
}
60-
61-
/**
62-
* The options used for image URLs that may be animated.
63-
*/
64-
export type ImageURLOptions = ImageURLOptionsNotWebp | ImageURLOptionsWebp;
65-
6656
/**
6757
* The options to use when making a CDN URL
6858
*/

0 commit comments

Comments
 (0)