FeedHive/twitter-api-client

`accountsAndUsers.friendshipsNoRetweetsIds()` returns Promise<unknown>

lostfictions opened this issue · 0 comments

Describe the bug

Hi again, another quick bug. accountsAndUsers.friendshipsNoRetweetsIds() returns Promise<unknown>, but the actual return type appears to be Promise<number[]> (if stringify_ids is false or omitted, which as noted in #101 should not be the case IMO), or Promise<string[]> (if stringify_ids is true).

To reproduce

  1. const ids = await client.accountsAndUsers.friendshipsNoRetweetsIds().
  2. Attempt to consume ids in another method or expression.
  3. ids is of type unknown.

Expected behavior

The call is well-typed.

Package Manager:

Yarn