AurelicButter / AniList-Node

A lightweight Node.js wrapper for the AniList API
https://katsurin.com/docs/anilist-node/
MIT License
43 stars 18 forks source link

[Fix/789, Fix/790, Fix/747] Update Typings + Fixed Response Catch #65

Closed AurelicButter closed 1 year ago

AurelicButter commented 1 year ago

Description

Fixed two issues:

  1. Fixed the response catch for rate limiting. If response status is not equal to 200, the fetcher will throw an error.
  2. Updated the JSDoc with missing properties (isRecommendationBlocked and isLocked) with AnimeEntry and MangaEntry responses.

Also includes a potential fix for a third issue. MediaEntry, which is a parent of AnimeEntry and MangaEntry in the typings, was getting returned for some anime functions. Updated the typing to not export MediaEntry as both AnimeEntry and MangaEntry are already exported.

Related Issue

Internal#747, Internal#789, and Internal#790