tweets.statusesHomeTimeline uses wrong StatusesHomeTimeline return type
repraze opened this issue · 1 comments
repraze commented
Describe the bug
client.tweets.statusesHomeTimeline({...})
returns a list of statuses from the current user timeline. The type should be a list of tweets like Promise<StatusesHomeTimeline[]>
and not Promise<StatusesHomeTimeline>
. The type given currently is a single tweet even if we get an array of statuses.
To reproduce
Steps to reproduce the behavior:
- In a typescript project install the package
- call client.tweets.statusesHomeTimeline({...})
- the output is a list, the time is a single tweet
Expected behavior
The type should be a list if the method always returns a list of status. Promise<StatusesHomeTimeline[]>
, Promise<Array <StatusesHomeTimeline>>
or similar.
Package Manager:
npm
Additional context
N.A.
SimonHoiberg commented
Thanks a lot for the PR.
v. 1.3.8 is released 🚀