I started using node-twitter-api-v2 recently and I found the bundled types for responses extremely helpful.
However, I did encounter a couple of fields that are available through the Twitter API, but do not exist in the types:
In UserV2, under public_metrics, the field like_count should probably be added.
Here's the real data returned from the Twitter V2 API when this field is requested:
In TweetV2, under public_metrics (which is of type TweetPublicMetricsV2), the field bookmark_count should probably be added.
Here's real data returned from the Twitter V2 API when this field is requested:
I started using node-twitter-api-v2 recently and I found the bundled types for responses extremely helpful.
However, I did encounter a couple of fields that are available through the Twitter API, but do not exist in the types:
UserV2
, underpublic_metrics
, the fieldlike_count
should probably be added. Here's the real data returned from the Twitter V2 API when this field is requested:TweetV2
, underpublic_metrics
(which is of typeTweetPublicMetricsV2
), the fieldbookmark_count
should probably be added. Here's real data returned from the Twitter V2 API when this field is requested:I'm able to get the code to work and return these fields, but TypeScript obviously does not like it:
Please let me know if you have any questions.