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>
This commit is contained in:
Lordie 2020-09-08 09:25:07 -03:00 committed by GitHub
parent 8a09cc4e8c
commit 0d76641b62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;