From 0d76641b628aec2a5ac80a4855bf9912841523a9 Mon Sep 17 00:00:00 2001 From: Lordie Date: Tue, 8 Sep 2020 09:25:07 -0300 Subject: [PATCH] add properties to Params interface in twit package to support the statuses/update endpoint (#47263) * added missing params from statuses/update https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/post-statuses-update * made all params optional and changed types * better type for exclude_reply_user_ids I tested and exclude_reply_user_ids param can also be just a string Co-authored-by: Abraham Williams <4braham@gmail.com> Co-authored-by: Abraham Williams <4braham@gmail.com> --- types/twit/index.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/types/twit/index.d.ts b/types/twit/index.d.ts index 7303a8f5c2..6dd4ebdf03 100644 --- a/types/twit/index.d.ts +++ b/types/twit/index.d.ts @@ -314,6 +314,13 @@ declare module 'twit' { name?: string; description?: string; mode?: 'public' | 'private'; + exclude_reply_user_ids?: string | string[]; + attachment_url?: string; + place_id?: string; + display_coordinates?: boolean; + enable_dmcommands?: boolean; + fail_dmcommands?: boolean; + card_uri?: string; } export interface PromiseResponse { data: Response;