Skip to content

Commit ed34ff6

Browse files
fix: add and correct field names (#554)
* fix: add and correct field names * fix: add and correct field names
1 parent 6654fa1 commit ed34ff6

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

src/types/entities.types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ export interface UrlEntity extends Entity {
1111
}
1212

1313
export interface HashtagEntity extends Entity {
14-
hashtag: string;
14+
tag: string;
1515
}
1616

1717
export interface CashtagEntity extends Entity {
18-
cashtag: string;
18+
tag: string;
1919
}
2020

2121
export interface MentionEntity extends Entity {

src/types/v2/tweet.definition.v2.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ export interface TweetEntityUrlV2 {
106106
description?: string;
107107
status?: string;
108108
images?: TweetEntityUrlImageV2[];
109+
media_key?: string;
109110
}
110111

111112
export interface TweetEntityUrlImageV2 {

src/types/v2/tweet.v2.types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export type TTweetv2PollField = 'duration_minutes' | 'end_datetime' | 'id' | 'op
5252
export type TTweetv2TweetField = 'attachments' | 'author_id' | 'context_annotations' | 'conversation_id'
5353
| 'created_at' | 'entities' | 'geo' | 'id' | 'in_reply_to_user_id' | 'lang'
5454
| 'public_metrics' | 'non_public_metrics' | 'promoted_metrics' | 'organic_metrics' | 'edit_controls'
55-
| 'possibly_sensitive' | 'referenced_tweets' | 'reply_settings' | 'source' | 'text' | 'withheld' | 'note_tweet';
55+
| 'possibly_sensitive' | 'referenced_tweets' | 'reply_settings' | 'source' | 'text' | 'withheld' | 'note_tweet' | 'edit_history_tweet_ids';
5656
export type TTweetv2UserField = 'created_at' | 'description' | 'entities' | 'id' | 'location'
5757
| 'name' | 'pinned_tweet_id' | 'profile_image_url' | 'protected' | 'public_metrics'
5858
| 'url' | 'username' | 'verified' | 'verified_type' | 'withheld' | 'connection_status' | 'most_recent_tweet_id';

src/types/v2/user.v2.types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ export interface UserV2 {
115115
tweet_count?: number;
116116
listed_count?: number;
117117
like_count?: number;
118+
media_count?: number;
118119
}
119120
pinned_tweet_id?: string;
120121
connection_status?: string[];

0 commit comments

Comments
 (0)