ttezel / twit

Twitter API Client for node (REST & Streaming API)
4.32k stars 573 forks source link

locations field is missing from Twit.Params #541

Open davidjmstewart opened 3 years ago

davidjmstewart commented 3 years ago

The Params interface does not contain locations as a field, meaning valid API interactions like this will fail to compile:

let stream = t.stream('statuses/filter', {
    locations: ['-125.15', '25.58', '-55.80', '48.59'],
    lang: "en",
})

Simply adding locations?: Array<String>; to the Params interface type declaration in index.d.ts would fix this.