diff options
| author | Fuwn <[email protected]> | 2023-11-29 16:38:20 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-11-29 16:38:20 -0800 |
| commit | fad9033ac9dfddad235ebd5c75aee8c6c114e551 (patch) | |
| tree | 544a0bbebcbd8b1cb45fc5946a886480d990bb69 /src/lib/AniList/prequels.ts | |
| parent | feat(tools): sequel spy (diff) | |
| download | due.moe-fad9033ac9dfddad235ebd5c75aee8c6c114e551.tar.xz due.moe-fad9033ac9dfddad235ebd5c75aee8c6c114e551.zip | |
feat(media): use common interface for objects
Diffstat (limited to 'src/lib/AniList/prequels.ts')
| -rw-r--r-- | src/lib/AniList/prequels.ts | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/lib/AniList/prequels.ts b/src/lib/AniList/prequels.ts index 82e470f4..68a153ba 100644 --- a/src/lib/AniList/prequels.ts +++ b/src/lib/AniList/prequels.ts @@ -1,8 +1,9 @@ import type { AniListAuthorisation } from './identity'; +import type { MediaTitle } from './media'; export interface MediaPrequel { id: number; - title: { english: string; romaji: string }; + title: MediaTitle; episodes: number; seen: number; } @@ -11,10 +12,7 @@ interface PrequelRelations { edges: { relationType: string; node: { - title: { - english: string; - romaji: string; - }; + title: MediaTitle; episodes: number; mediaListEntry: { status: string; @@ -28,10 +26,7 @@ interface PrequelsPage { data: { Page: { media: { - title: { - english: string; - romaji: string; - }; + title: MediaTitle; id: number; relations: PrequelRelations; }[]; |