refactored Keywords to use Keyword interface
This commit is contained in:
@@ -125,13 +125,3 @@ export interface Videos {
|
|||||||
id: number;
|
id: number;
|
||||||
results: Video[];
|
results: Video[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Keywords {
|
|
||||||
id: number;
|
|
||||||
keywords: Array<{
|
|
||||||
id: number;
|
|
||||||
name: string;
|
|
||||||
}>
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|||||||
@@ -17,3 +17,8 @@ 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