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

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

Description

@lostfictions

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions