mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
Merge pull request #32762 from JustGoscha/master
types/twit: Adds string[] type to Params.follow type
This commit is contained in:
Vendored
+2
-1
@@ -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,
|
||||
|
||||
@@ -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']
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user