This repository was archived by the owner on Jun 13, 2022. It is now read-only.
File tree 3 files changed +9
-4
lines changed
3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @mattplays/aniapi" ,
3
- "version" : " 2.0.5 " ,
3
+ "version" : " 2.0.6 " ,
4
4
"description" : " A Javascript wrapper for aniapi" ,
5
5
"main" : " dist/index.js" ,
6
6
"types" : " dist/index.d.ts" ,
Original file line number Diff line number Diff line change 3
3
AnimeFormat ,
4
4
AnimeStatus ,
5
5
AnimeSeasonPeriod ,
6
- AnimeWeeklyAiringDay ,
6
+ Saga ,
7
7
} from '../types' ;
8
8
9
9
export type AnimeGenres =
@@ -365,7 +365,7 @@ export class Anime implements AnimeType {
365
365
/**
366
366
* The sagas for said anime
367
367
*/
368
- sagas ?: Anime [ ] ;
368
+ sagas ?: Saga [ ] ;
369
369
/**
370
370
* Wether the show has a cover image or not
371
371
*/
Original file line number Diff line number Diff line change @@ -24,11 +24,16 @@ export interface Anime {
24
24
sequel : number | null ;
25
25
prequel : number | null ;
26
26
score : number ;
27
- sagas ?: Anime [ ] ;
27
+ sagas ?: Saga [ ] ;
28
28
has_cover_image : boolean ;
29
29
recommendations : number [ ] ;
30
30
}
31
31
32
+ export type Saga = Pick <
33
+ Anime ,
34
+ 'episode_from' | 'episode_to' | 'episodes_count' | 'titles' | 'descriptions'
35
+ > ;
36
+
32
37
export enum AnimeWeeklyAiringDay {
33
38
'Sunday' ,
34
39
'Monday' ,
You can’t perform that action at this time.
0 commit comments