fix(name): fix a couple of crashes in name and title route

This commit is contained in:
zyachel
2023-05-21 14:44:54 +05:30
parent be80244eb3
commit 8d9b6630a5
10 changed files with 95 additions and 141 deletions

View File

@ -34,7 +34,7 @@ export default interface Name {
total: number;
};*/
primaryImage: {
primaryImage?: {
id: string;
url: string;
height: number;
@ -687,13 +687,13 @@ export default interface Name {
}>;
};
};
titleGenres: {
genres: Array<{
genre: {
text: string;
};
}>;
};
titleGenres: {
genres: Array<{
genre: {
text: string;
};
}>;
};
productionStatus: {
currentProductionStage: {
id: string;
@ -882,7 +882,7 @@ export default interface Name {
plainText: string;
};
};
attributes: Array<{
attributes?: Array<{
id: string;
text: string;
}>;

View File

@ -125,7 +125,7 @@ export default interface RawTitle {
runtime: {
value: number;
};
description: {
description?: {
value: string;
language: string;
};