refactored Keywords to use Keyword interface
This commit is contained in:
@@ -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;
|
|
||||||
}>
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -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[];
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user