mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
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:
parent
8a09cc4e8c
commit
0d76641b62
7
types/twit/index.d.ts
vendored
7
types/twit/index.d.ts
vendored
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user