Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #9 from MattPlays/nightly
Browse files Browse the repository at this point in the history
2.0.4
  • Loading branch information
Artrix9095 authored Mar 14, 2022
2 parents cdab911 + 6e6a8b6 commit cfde90c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mattplays/aniapi",
"version": "2.0.3",
"version": "2.0.4",
"description": "A Javascript wrapper for aniapi",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
11 changes: 11 additions & 0 deletions src/API/handlers/Anime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,8 @@ export class Anime implements AnimeType {
* The show's episode average duration in minutes.
*/
episode_duration: number;
episode_from: number;
episode_to: number;
/**
* External link to the show's trailer video. Possible services: Youtube, Dailymotion
*/
Expand Down Expand Up @@ -360,6 +362,15 @@ export class Anime implements AnimeType {
* The show's global appreciation indicator. Minimum value is `0` and maximum is `100`.
*/
score: number;
/**
* The sagas for said anime
*/
sagas?: Anime[];
/**
* Wether the show has a cover image or not
*/
has_cover_image: boolean;

constructor(data: AnimeType) {
Object.assign(this, {
...data,
Expand Down
4 changes: 4 additions & 0 deletions src/API/types/Anime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export interface Anime {
season_year: number | null;
episodes_count: number;
episode_duration: number | null;
episode_from: number;
episode_to: number;
trailer_url: string | null;
cover_image: string;
cover_color: string;
Expand All @@ -22,6 +24,8 @@ export interface Anime {
sequel: number | null;
prequel: number | null;
score: number;
sagas?: Anime[];
has_cover_image: boolean;
}

export enum AnimeWeeklyAiringDay {
Expand Down

0 comments on commit cfde90c

Please sign in to comment.