spotify-types icon indicating copy to clipboard operation
spotify-types copied to clipboard

Missing return type for '/me/following' endpoint

Open timrae opened this issue 1 year ago • 0 comments

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>;
}

timrae avatar Apr 03 '23 04:04 timrae