Merge pull request #32762 from JustGoscha/master

types/twit: Adds string[] type to Params.follow type
This commit is contained in:
Nathan Shively-Sanders
2019-02-04 15:25:00 -08:00
committed by GitHub
2 changed files with 7 additions and 1 deletions
+2 -1
View File
@@ -5,6 +5,7 @@
// abraham <https://github.com/abraham>
// siwalik <https://github.com/siwalikm>
// plhery <https://github.com/plhery>
// justGoscha <https://github.com/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,
+5
View File
@@ -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']
})