Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

accountsAndUsers.friendshipsNoRetweetsIds() returns Promise<unknown> #103

Open
lostfictions opened this issue Mar 27, 2022 · 0 comments
Open
Labels
bug Something isn't working

Comments

@lostfictions
Copy link

lostfictions commented Mar 27, 2022

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

@lostfictions lostfictions added the bug Something isn't working label Mar 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant