Skip to content

Commit 18f3b44

Browse files
committed
fix(season): types
1 parent 89dbcad commit 18f3b44

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/dto/movie.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ export interface CSFDMovie extends CSFDScreening {
2525
}
2626

2727
export interface CSFDParent {
28-
season: { id: number; name: string; };
29-
series: { id: number; name: string; };
28+
season: { id: number; name: string } | null;
29+
series: { id: number; name: string } | null;
3030
}
3131

3232
export type CSFDVodService =
@@ -96,8 +96,6 @@ export interface CSFDMovieListItem {
9696
url: string;
9797
}
9898

99-
100-
10199
export type CSFDGenres =
102100
| 'Akční'
103101
| 'Animovaný'
@@ -157,7 +155,6 @@ export type CSFDCreatorGroups =
157155
| 'Scénografie'
158156
| 'Kostýmy';
159157

160-
161158
export type CSFDCreatorGroupsEnglish =
162159
| 'Directed by'
163160
| 'Screenplay'
@@ -199,4 +196,4 @@ export interface CSFDSeason {
199196
name: string;
200197
url: string;
201198
info: string | null;
202-
}
199+
}

src/helpers/movie.helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export const getMovieId = (el: HTMLElement): number => {
108108

109109
export const getSerieasAndSeasonTitle = (
110110
el: HTMLElement
111-
): { seriesName: string; seasonName: string | null } => {
111+
): { seriesName: string | null; seasonName: string | null } => {
112112
const titleElement = el.querySelector('h1');
113113
if (!titleElement) {
114114
return { seriesName: null, seasonName: null };

0 commit comments

Comments
 (0)