Started adding Types needed from AniList
This commit is contained in:
parent
020a09da6f
commit
1196bac234
55
frontend/src/AniListTypes.ts
Normal file
55
frontend/src/AniListTypes.ts
Normal file
@ -0,0 +1,55 @@
|
||||
export interface AniListItem {
|
||||
data: {
|
||||
Media: {
|
||||
id: number,
|
||||
idMal: number,
|
||||
title: {
|
||||
romaji: string,
|
||||
english: string,
|
||||
},
|
||||
description: string,
|
||||
coverImage: {
|
||||
medium: string,
|
||||
large: string,
|
||||
extraLarge: string,
|
||||
color: string,
|
||||
},
|
||||
tags: [{
|
||||
id: number,
|
||||
name: string,
|
||||
description: string,
|
||||
category: string,
|
||||
rank: number,
|
||||
isGeneralSpoiler: boolean,
|
||||
isMediaSpoiler: boolean,
|
||||
isAdult: boolean
|
||||
}]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export interface AniSearchList {
|
||||
data: {
|
||||
Page: {
|
||||
pageInfo: {
|
||||
total: number,
|
||||
currentPage: number,
|
||||
lastPage: number,
|
||||
hasNextPage: boolean,
|
||||
perPage: number
|
||||
},
|
||||
media: [{
|
||||
id: number,
|
||||
idMal: number,
|
||||
title: {
|
||||
romaji: string,
|
||||
english: string,
|
||||
},
|
||||
coverImage: {
|
||||
extraLarge: string,
|
||||
color: string,
|
||||
},
|
||||
}],
|
||||
},
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user