From ca7d2e92a6319b9c3d5e0c607f061513753f1120 Mon Sep 17 00:00:00 2001 From: Takuya Inagaki Date: Sun, 27 May 2018 02:53:23 +0900 Subject: [PATCH 1/2] Add tweet_mode to Params and full_text and display_text_range to Status. --- types/twit/index.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/types/twit/index.d.ts b/types/twit/index.d.ts index 6b82dd6b65..59c79ca5eb 100644 --- a/types/twit/index.d.ts +++ b/types/twit/index.d.ts @@ -192,12 +192,14 @@ declare module 'twit' { retweeted: boolean, retweeted_status?: Status, source?: string, - text: string, + text?: string, + full_text?: string, truncated: boolean, user: User, withheld_copyright?: boolean, withheld_in_countries?: string[], withheld_scope?: string, + display_text_range?: number[], } export interface Metadata { max_id?: number, @@ -261,6 +263,7 @@ declare module 'twit' { follow?: boolean, include_email?: boolean, cursor?: number, + tweet_mode? :string, } export interface PromiseResponse { data: Response, From 35793341b21ef6d53b6617c5dc6f4e6db7416988 Mon Sep 17 00:00:00 2001 From: takuya inagaki Date: Sun, 27 May 2018 03:26:46 +0900 Subject: [PATCH 2/2] Change type of display_text_range --- types/twit/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/twit/index.d.ts b/types/twit/index.d.ts index 59c79ca5eb..89d28766b3 100644 --- a/types/twit/index.d.ts +++ b/types/twit/index.d.ts @@ -199,7 +199,7 @@ declare module 'twit' { withheld_copyright?: boolean, withheld_in_countries?: string[], withheld_scope?: string, - display_text_range?: number[], + display_text_range?: [number, number], } export interface Metadata { max_id?: number,