Skip to content

Commit 1e625ef

Browse files
authored
fix: absence of profile_banner_url field (#565)
* fix: profile_banner_url absent * fix: profile_banner_url in UserV2 type
1 parent a340e5e commit 1e625ef

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export type TTweetv2TweetField = 'attachments' | 'author_id' | 'context_annotati
5454
| 'public_metrics' | 'non_public_metrics' | 'promoted_metrics' | 'organic_metrics' | 'edit_controls'
5555
| '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'
57-
| 'name' | 'pinned_tweet_id' | 'profile_image_url' | 'protected' | 'public_metrics'
57+
| 'name' | 'pinned_tweet_id' | 'profile_image_url' | 'profile_banner_url' | 'protected' | 'public_metrics'
5858
| 'url' | 'username' | 'verified' | 'verified_type' | 'withheld' | 'connection_status' | 'most_recent_tweet_id';
5959

6060
export interface Tweetv2FieldsParams {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ export interface UserV2 {
109109
}
110110
}
111111
profile_image_url?: string;
112+
profile_banner_url?: string;
112113
public_metrics?: {
113114
followers_count?: number;
114115
following_count?: number;

0 commit comments

Comments
 (0)