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

Missing return type for '/me/following' endpoint #6

Open
timrae opened this issue Apr 3, 2023 · 0 comments
Open

Missing return type for '/me/following' endpoint #6

timrae opened this issue Apr 3, 2023 · 0 comments
Labels
new types Add new types or interfaces

Comments

@timrae
Copy link

timrae commented Apr 3, 2023

See docs here. Suggested type below:

interface FollowedArtistCursors {
  /** The cursor to use as key to find the next page of items. */
  after: string;
  /** The cursor to use as key to find the previous page of items. */
  before: string;
}

interface FollowedArtistCursorPaging<T> {
  /** A link to the Web API endpoint returning the full result of the request. */
  href: string;
  /** The maximum number of items in the response (as set in the query or by default). */
  limit: number;
  /** URL to the next page of items. (null if none) */
  next: string;
  /** The cursors used to find the next set of items. */
  cursors: FollowedArtistCursors;
  /** The total number of items available to return. */
  total: number;
  /** The requested data. */
  items: T[];
}

interface FollowedArtistsResults {
  artists: FollowedArtistCursorPaging<Artist>;
}
@scientific-dev scientific-dev added the new types Add new types or interfaces label Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new types Add new types or interfaces
Projects
None yet
Development

No branches or pull requests

2 participants