Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix v1.tweets typing #72

Closed
Zeusz0 opened this issue Sep 10, 2021 · 2 comments
Closed

Fix v1.tweets typing #72

Zeusz0 opened this issue Sep 10, 2021 · 2 comments

Comments

@Zeusz0
Copy link

Zeusz0 commented Sep 10, 2021

Funtcion header of V1.tweets is:
TwitterApiv1ReadOnly.tweets(ids: string | string[], options?: TweetLookupNoMapV1Params): Promise<UserV1[]>

however according to the documantation should be: Promise<TweetV1[]> or Promise<TweetLookupMapV1Result>

https://github.com/PLhery/node-twitter-api-v2/blob/7eb6399ddba4eacb3a18c727119e539ada3b64cf/doc/v1.md#get-multiple-tweets

@alkihis
Copy link
Collaborator

alkihis commented Sep 10, 2021

Hello, thank you for your report.

Type modification will be patched and published soon :)

@alkihis
Copy link
Collaborator

alkihis commented Sep 10, 2021

Available in 1.5.1.

@alkihis alkihis closed this as completed Sep 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants