Skip to content

Commit 69f9b31

Browse files
author
Louis Béranger
committed
fix: Add missing tweet.field and expansions for tweet edition
1 parent ee3b967 commit 69f9b31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ export interface TweetV2UserTimelineParams extends TweetV2PaginableTimelineParam
4141
export interface TweetV2HomeTimelineParams extends TweetV2UserTimelineParams {}
4242

4343
export type TTweetv2Expansion = 'attachments.poll_ids' | 'attachments.media_keys'
44-
| 'author_id' | 'referenced_tweets.id' | 'in_reply_to_user_id'
44+
| 'author_id' | 'referenced_tweets.id' | 'in_reply_to_user_id' | 'edit_history_tweet_ids'
4545
| 'geo.place_id' | 'entities.mentions.username' | 'referenced_tweets.id.author_id';
4646
export type TTweetv2MediaField = 'duration_ms' | 'height' | 'media_key' | 'preview_image_url' | 'type'
4747
| 'url' | 'width' | 'public_metrics' | 'non_public_metrics' | 'organic_metrics' | 'alt_text' | 'variants';
4848
export type TTweetv2PlaceField = 'contained_within' | 'country' | 'country_code' | 'full_name' | 'geo' | 'id' | 'name' | 'place_type';
4949
export type TTweetv2PollField = 'duration_minutes' | 'end_datetime' | 'id' | 'options' | 'voting_status';
5050
export type TTweetv2TweetField = 'attachments' | 'author_id' | 'context_annotations' | 'conversation_id'
5151
| 'created_at' | 'entities' | 'geo' | 'id' | 'in_reply_to_user_id' | 'lang'
52-
| 'public_metrics' | 'non_public_metrics' | 'promoted_metrics' | 'organic_metrics'
52+
| 'public_metrics' | 'non_public_metrics' | 'promoted_metrics' | 'organic_metrics' | 'edit_controls'
5353
| 'possibly_sensitive' | 'referenced_tweets' | 'reply_settings' | 'source' | 'text' | 'withheld';
5454
export type TTweetv2UserField = 'created_at' | 'description' | 'entities' | 'id' | 'location'
5555
| 'name' | 'pinned_tweet_id' | 'profile_image_url' | 'protected' | 'public_metrics'

0 commit comments

Comments
 (0)