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 #10 from MattPlays/dev
Browse files Browse the repository at this point in the history
2.0.6
  • Loading branch information
Artrix9095 authored Mar 31, 2022
2 parents 12597b4 + 03db9bb commit f39d9ef
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
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.5",
"version": "2.0.6",
"description": "A Javascript wrapper for aniapi",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/API/handlers/Anime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
AnimeFormat,
AnimeStatus,
AnimeSeasonPeriod,
AnimeWeeklyAiringDay,
Saga,
} from '../types';

export type AnimeGenres =
Expand Down Expand Up @@ -365,7 +365,7 @@ export class Anime implements AnimeType {
/**
* The sagas for said anime
*/
sagas?: Anime[];
sagas?: Saga[];
/**
* Wether the show has a cover image or not
*/
Expand Down
7 changes: 6 additions & 1 deletion src/API/types/Anime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,16 @@ export interface Anime {
sequel: number | null;
prequel: number | null;
score: number;
sagas?: Anime[];
sagas?: Saga[];
has_cover_image: boolean;
recommendations: number[];
}

export type Saga = Pick<
Anime,
'episode_from' | 'episode_to' | 'episodes_count' | 'titles' | 'descriptions'
>;

export enum AnimeWeeklyAiringDay {
'Sunday',
'Monday',
Expand Down

0 comments on commit f39d9ef

Please sign in to comment.