ttezel / twit

Twitter API Client for node (REST & Streaming API)
4.31k stars 568 forks source link

locations field is missing from Twit.Params #541

Open davidjmstewart opened 4 years ago

davidjmstewart commented 4 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.