Skip to content

Commit 75e332a

Browse files
chore: Commiting linting changes
1 parent e1d15a3 commit 75e332a

File tree

8 files changed

+52
-48
lines changed

8 files changed

+52
-48
lines changed

src/discover-form-data/discover-form-data.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ export interface IDefaultValues {
33
sort_by?: string;
44
ott_region?: string;
55
restrict_services?: boolean;
6-
with_ott_providers?: string[];
6+
with_ott_providers?: Array<string>;
77
show_me?: string;
8-
with_watch_monetization_types?: string[];
9-
with_genres?: string[];
10-
certifications?: string[];
11-
with_release_types?: string[];
8+
with_watch_monetization_types?: Array<string>;
9+
with_genres?: Array<string>;
10+
certifications?: Array<string>;
11+
with_release_types?: Array<string>;
1212
with_original_language?: string;
1313
region?: string;
1414
vote_average_lte?: string;

src/entertainment/entertainment.service.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export class EntertainmentService {
8585
async getTopBilledCast({
8686
entertainmentType,
8787
entertainmentId
88-
}: IEntertainmentCommonArguments): Promise<Cast[] | null> {
88+
}: IEntertainmentCommonArguments): Promise<Array<Cast> | null> {
8989
const { data } = await firstValueFrom(
9090
this.httpService.get<ICreditsQueryResponse>(
9191
`https://api.themoviedb.org/3/${entertainmentType.toLocaleLowerCase()}/${entertainmentId}/credits?language=en-U`,
@@ -113,7 +113,7 @@ export class EntertainmentService {
113113
async getFeaturedCrewMembers({
114114
entertainmentType,
115115
entertainmentId
116-
}: IEntertainmentCommonArguments): Promise<Crew[] | null> {
116+
}: IEntertainmentCommonArguments): Promise<Array<Crew> | null> {
117117
const { data } = await firstValueFrom(
118118
this.httpService.get<ICreditsQueryResponse>(
119119
`https://api.themoviedb.org/3/${entertainmentType.toLowerCase()}/${entertainmentId}/credits?language=en-U`,
@@ -138,7 +138,7 @@ export class EntertainmentService {
138138
})
139139
.slice(0, 6);
140140

141-
const featuredCrewMembers: Crew[] = [];
141+
const featuredCrewMembers: Array<Crew> = [];
142142

143143
/*
144144
@@ -172,7 +172,7 @@ export class EntertainmentService {
172172
async getKeywords({
173173
entertainmentType,
174174
entertainmentId
175-
}: IEntertainmentCommonArguments): Promise<Keyword[] | null> {
175+
}: IEntertainmentCommonArguments): Promise<Array<Keyword> | null> {
176176
const { data } = await firstValueFrom(
177177
this.httpService.get<IKeywordsQueryResponse>(
178178
`https://api.themoviedb.org/3/${entertainmentType.toLocaleLowerCase()}/${entertainmentId}/keywords?language=en-U`,
@@ -218,7 +218,7 @@ export class EntertainmentService {
218218
spokenLanguages
219219
}: {
220220
originalLanguage: string;
221-
spokenLanguages: TheOpenMovieDatabaseSpokenLanguages[];
221+
spokenLanguages: Array<TheOpenMovieDatabaseSpokenLanguages>;
222222
}) => {
223223
if (originalLanguage.length !== 0 && spokenLanguages.length === 0) {
224224
const foundFriendlyLanguage = spokenLanguages.find(

src/entertainment/entertainment.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { ICast, ICrew } from '../types/credits';
66
export interface IReviewQuery {
77
id: number;
88
page: number;
9-
results: {
9+
results: Array<{
1010
author: string;
1111
author_details: {
1212
name: string;
@@ -19,18 +19,18 @@ export interface IReviewQuery {
1919
id: string;
2020
updated_at: string;
2121
url: string;
22-
}[];
22+
}>;
2323
}
2424

2525
export interface ICreditsQueryResponse {
2626
id: number;
27-
cast: ICast[];
28-
crew: ICrew[];
27+
cast: Array<ICast>;
28+
crew: Array<ICrew>;
2929
}
3030

3131
export interface IKeywordsQueryResponse {
3232
id: number;
33-
keywords: Keyword[];
33+
keywords: Array<Keyword>;
3434
}
3535

3636
export interface IVideosQueryResult {
@@ -48,5 +48,5 @@ export interface IVideosQueryResult {
4848

4949
export interface IVdoesQueryResponse {
5050
id: number;
51-
results: IVideosQueryResult[];
51+
results: Array<IVideosQueryResult>;
5252
}

src/graphql.schema.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* -------------------------------------------------------
55
*/
66

7-
/* tslint:disable */
87
/* eslint-disable */
98

109
export enum ENTERTAINMENT_TYPES {

src/movie/movie.ts

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,27 @@ export interface TheOpenMovieDatabaseMovie {
1919
backdrop_path: string;
2020
belongs_to_collection: TheOpenMovieDatabaseBelongsToCollection | null;
2121
budget: number;
22-
genres: Genre[];
22+
genres: Array<Genre>;
2323
homepage: string;
2424
id: number;
2525
imdb_id: string;
26-
origin_country: string[];
26+
origin_country: Array<string>;
2727
original_language: string;
2828
original_title: string;
2929
overview: string;
3030
popularity: number;
3131
poster_path: string;
32-
production_companies: { id: number; logo_path: string; name: string; origin_country: string }[];
33-
production_countries: { iso_3166_1: string; name: string }[];
32+
production_companies: Array<{
33+
id: number;
34+
logo_path: string;
35+
name: string;
36+
origin_country: string;
37+
}>;
38+
production_countries: Array<{ iso_3166_1: string; name: string }>;
3439
release_date: string;
3540
revenue: number;
3641
runtime: number;
37-
spoken_languages: TheOpenMovieDatabaseSpokenLanguages[];
42+
spoken_languages: Array<TheOpenMovieDatabaseSpokenLanguages>;
3843
status: string;
3944
tagline: string;
4045
title: string;
@@ -83,7 +88,7 @@ export interface TheOpenMovieDatabaseMovieCrew extends TheOpenMovieDatabaseMovie
8388

8489
export interface TheOpenMovieDatabaseMovieKeywords {
8590
id: number;
86-
keywords: Keyword[];
91+
keywords: Array<Keyword>;
8792
}
8893

8994
export interface TheOpenMovieDatbaseExternalIds {

src/person/person.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export class PersonService {
7878
}
7979

8080
private getGroupCredits(departmentCredits: IGetGroupCredits) {
81-
const credits: Group[] = [];
81+
const credits: Array<Group> = [];
8282

8383
departmentCredits.forEach((departmentCredit) => {
8484
// Crew credit for a "movie"
@@ -159,7 +159,7 @@ export class PersonService {
159159
...allCreditsWithoutEmptyYears
160160
];
161161

162-
const groups: { year: number | '-'; credits: Group[] }[] = [];
162+
const groups: Array<{ year: number | '-'; credits: Array<Group> }> = [];
163163

164164
creditsWithEmptyYearsAtTop.forEach((credit) => {
165165
const groupIndex = groups.findIndex((el) => el.year === credit.year);

src/person/person.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export type TheOpenMovieDatabaseDepartments =
1010

1111
export interface TheOpenMovieDatabasePerson {
1212
adult: boolean;
13-
also_known_as: string[];
13+
also_known_as: Array<string>;
1414
biography: string;
1515
birthday: string;
1616
deathday: null | string;
@@ -28,7 +28,7 @@ export interface TheOpenMovieDatabasePerson {
2828
interface ICredit {
2929
adult: boolean;
3030
backdrop_path: string | null;
31-
genre_ids: number[];
31+
genre_ids: Array<number>;
3232
id: number;
3333
overview: string;
3434
popularity: number;
@@ -50,7 +50,7 @@ type IMovieCredit = {
5050
} & ICredit;
5151

5252
type ITVCredits = {
53-
origin_country: string[];
53+
origin_country: Array<string>;
5454
original_language: string;
5555
original_name: string;
5656
first_air_date: string;
@@ -83,10 +83,10 @@ export type Crew = IMovieCrew | ITVCrew;
8383

8484
export type Cast = IMovieCast | ITVCast;
8585

86-
export type IGetGroupCredits = Crew[] | Cast[];
86+
export type IGetGroupCredits = Array<Crew> | Array<Cast>;
8787
export interface TheOpenMovieDatabasePersonCombinedCredits {
88-
cast: Omit<IMovieCast, 'type'>[] | Omit<ITVCast, 'type'>[];
89-
crew: Omit<IMovieCrew, 'type'>[] | Omit<ITVCrew, 'type'>[];
88+
cast: Array<Omit<IMovieCast, 'type'>> | Array<Omit<ITVCast, 'type'>>;
89+
crew: Array<Omit<IMovieCrew, 'type'>> | Array<Omit<ITVCrew, 'type'>>;
9090
id: number;
9191
}
9292

src/show/show.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -31,37 +31,37 @@ export interface TheOpenMovieDatabaseShow {
3131
adult: boolean;
3232
backdrop_path: string;
3333
belongs_to_collection?: TheOpenMovieDatabaseBelongsToCollection | null;
34-
created_by: {
34+
created_by: Array<{
3535
id: number;
3636
credit_id: string;
3737
name: string;
3838
original_name: string;
3939
gender: Gender;
4040
profile_path: string;
41-
}[];
42-
episode_run_time: number[];
41+
}>;
42+
episode_run_time: Array<number>;
4343
first_air_date: string;
44-
genres: Genre[];
44+
genres: Array<Genre>;
4545
homepage: string;
4646
id: number;
4747
in_production: boolean;
48-
languages: string[];
48+
languages: Array<string>;
4949
last_air_date: string;
5050
last_episode_to_air: null | TheOpenMovieDatabaseEpisodeToAir;
5151
name: string;
5252
next_episode_to_air: null | TheOpenMovieDatabaseEpisodeToAir;
53-
networks: TheOpenMovieDatabaseCompany[];
53+
networks: Array<TheOpenMovieDatabaseCompany>;
5454
number_of_episodes: number;
5555
number_of_seasons: number;
56-
origin_country: string[];
56+
origin_country: Array<string>;
5757
original_language: string;
5858
original_name: string;
5959
overview: string;
6060
popularity: number;
6161
poster_path: string;
62-
production_companies: TheOpenMovieDatabaseCompany[];
63-
production_countries: { iso_3166_1: string; name: string }[];
64-
seasons: {
62+
production_companies: Array<TheOpenMovieDatabaseCompany>;
63+
production_countries: Array<{ iso_3166_1: string; name: string }>;
64+
seasons: Array<{
6565
air_date: string | null;
6666
episode_count: number;
6767
id: number;
@@ -70,12 +70,12 @@ export interface TheOpenMovieDatabaseShow {
7070
poster_path: string;
7171
season_number: number;
7272
vote_average: number;
73-
}[];
74-
spoken_languages: {
73+
}>;
74+
spoken_languages: Array<{
7575
english_name: string;
7676
iso_639_1: string;
7777
name: string;
78-
}[];
78+
}>;
7979
status: string;
8080
tagline: string;
8181
type: string;
@@ -90,15 +90,15 @@ interface IAggregatedCreditJob {
9090
}
9191

9292
interface IAggregatedCreditsQueryCastResponse extends ICast {
93-
roles: IAggregatedCreditJob[];
93+
roles: Array<IAggregatedCreditJob>;
9494
}
9595

9696
interface IAggregatedCreditsQueryCrewResponse extends ICrew {
97-
roles: IAggregatedCreditJob[];
97+
roles: Array<IAggregatedCreditJob>;
9898
}
9999

100100
export interface IAggregatedCreditsQueryResponse {
101101
id: number;
102-
cast: IAggregatedCreditsQueryCastResponse[];
103-
crew: IAggregatedCreditsQueryCrewResponse[];
102+
cast: Array<IAggregatedCreditsQueryCastResponse>;
103+
crew: Array<IAggregatedCreditsQueryCrewResponse>;
104104
}

0 commit comments

Comments
 (0)