FeedHive/twitter-api-client

StatusesHomeTimeline type missing retweeted_status property

goleary opened this issue · 1 comments

The objects returned by client.tweets.statusesHomeTimeline(...) have an optional property retweeted_status that is left out of the types.

I'd submit a PR to update the types, but looks like this client is generated in a way that I'm not familiar with.

This is the modification I'd make if there were a type file to modify in this repo:

export default interface StatusesHomeTimeline {
    created_at: string;
    id: number;
    id_str: string;
    text: string;
    full_text: string;
    truncated: boolean;
    entities: Entities;
    extended_entities: Extendedentities;
    source: string;
    in_reply_to_status_id?: any;
    in_reply_to_status_id_str?: any;
    in_reply_to_user_id?: any;
    in_reply_to_user_id_str?: any;
    in_reply_to_screen_name?: any;
    user: User;
    geo?: any;
    coordinates?: any;
    place?: any;
    contributors?: any;
    is_quote_status: boolean;
    quoted_status_id: number;
    quoted_status_id_str: string;
    quoted_status: Quotedstatus;
    retweet_count: number;
    favorite_count: number;
    favorited: boolean;
    retweeted: boolean;
    possibly_sensitive: boolean;
    lang: string;
+   retweeted_tweet?: Omit<StatusesHomeTimeline, 'retweeted_tweet'>;
}

Happy to make the change and submit a PR if you point me in the right direction @SimonHoiberg