Started adding Types needed from AniList

This commit is contained in:
John O'Keefe 2024-07-20 00:00:39 -04:00
parent 020a09da6f
commit 1196bac234

View 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,
},
}],
},
}
}