Skip to content

Commit

Permalink
feat: add giphy size customisation data support (#921)
Browse files Browse the repository at this point in the history
* feat: add giphy customisation data support

* fix: incorrect typing of height and width of giphy data

Co-authored-by: Vishal Narkhede <vishalnarkhede.iitd@gmail.com>
  • Loading branch information
santhoshvai and vishalnarkhede authored Mar 10, 2022
1 parent 084bd24 commit 140cb6a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1486,6 +1486,7 @@ export type Attachment<
file_size?: number | string;
footer?: string;
footer_icon?: string;
giphy?: GiphyData;
image_url?: string;
mime_type?: string;
og_scrape_url?: string;
Expand Down Expand Up @@ -1777,6 +1778,25 @@ export type FirebaseConfig = {
notification_template?: string;
};

type GiphyVersionInfo = {
height: string;
url: string;
width: string;
};

type GiphyVersions =
| 'original'
| 'fixed_height'
| 'fixed_height_still'
| 'fixed_height_downsampled'
| 'fixed_width'
| 'fixed_width_still'
| 'fixed_width_downsampled';

type GiphyData = {
[key in GiphyVersions]: GiphyVersionInfo;
};

export type HuaweiConfig = {
enabled?: boolean;
};
Expand Down

0 comments on commit 140cb6a

Please sign in to comment.