diff --git a/types/twit/index.d.ts b/types/twit/index.d.ts index a66e75bab7..778a112ee3 100644 --- a/types/twit/index.d.ts +++ b/types/twit/index.d.ts @@ -5,6 +5,7 @@ // abraham // siwalik // plhery +// justGoscha // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -263,7 +264,7 @@ declare module 'twit' { user_id?: number | string, lat?: number, long?: number, - follow?: boolean | string, + follow?: boolean | string | string[], include_email?: boolean, cursor?: number | string, tweet_mode?: string, diff --git a/types/twit/twit-tests.ts b/types/twit/twit-tests.ts index 1029bda13c..bfdc870f13 100644 --- a/types/twit/twit-tests.ts +++ b/types/twit/twit-tests.ts @@ -11,3 +11,8 @@ t.post('statuses/update', { status: 'hello!' }).then(res => { console.log(status.id_str) console.log(res.resp.statusCode) }) + +t.stream('statuses/filter', { + track: ['#love','#goscha'], + follow: ['40436619', '606663038', '14466815'] + })