refactored Keywords to use Keyword interface

This commit is contained in:
DerPenz
2023-02-27 15:40:32 +01:00
parent ea430efcf5
commit ca2fa16ad0
2 changed files with 6 additions and 11 deletions

View File

@@ -124,14 +124,4 @@ export interface Video {
export interface Videos { export interface Videos {
id: number; id: number;
results: Video[]; results: Video[];
} }
export interface Keywords {
id: number;
keywords: Array<{
id: number;
name: string;
}>
}

View File

@@ -16,4 +16,9 @@ export interface BelongingMovies{
export interface Keyword{ export interface Keyword{
id: number; id: number;
name: string; name: string;
}
export interface Keywords {
id: number;
keywords: Keyword[];
} }