`accountsAndUsers.friendshipsNoRetweetsIds()` returns Promise<unknown>
lostfictions opened this issue · 0 comments
lostfictions commented
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
const ids = await client.accountsAndUsers.friendshipsNoRetweetsIds()
.- Attempt to consume
ids
in another method or expression. ids
is of typeunknown
.
Expected behavior
The call is well-typed.
Package Manager:
Yarn