Skip to content

Commit

Permalink
Fix wrong type for optional parameter images in TweetEntityUrlV2 (#121)
Browse files Browse the repository at this point in the history
* Update package.json

* Changed type of optional images property of TweetEntityUrlV2 to array

* Undo update of package.json

Co-authored-by: Paul-Louis HERY <[email protected]>

Co-authored-by: Poobesh Gowtham <[email protected]>
Co-authored-by: Paul-Louis HERY <[email protected]>
  • Loading branch information
3 people authored Dec 5, 2021
1 parent 4e76834 commit d8a9272
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/types/v2/tweet.definition.v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,13 @@ export interface TweetEntityUrlV2 {
title?: string;
description?: string;
status?: string;
images?: {
url: string;
width: number;
height: number;
}
images?: TweetEntityUrlImageV2[];
}

export interface TweetEntityUrlImageV2 {
url: string;
width: number;
height: number;
}

export interface TweetEntityHashtagV2 {
Expand Down

0 comments on commit d8a9272

Please sign in to comment.