add linting and prettier

This commit is contained in:
Blake Joynes
2023-04-13 21:58:41 -04:00
parent 7cccdb9929
commit 06155bd323
38 changed files with 2514 additions and 2135 deletions

View File

@@ -6,14 +6,14 @@ export type TimeWindow = 'day' | 'week';
type TrendingResult<T extends MediaType> = T extends 'tv'
? TV
: T extends 'movie'
? Movie
: T extends 'person'
? Person
: TV | Movie | Person;
? Movie
: T extends 'person'
? Person
: TV | Movie | Person;
export interface TrendingResults<T extends MediaType> {
page: number;
results: (TrendingResult<T> & {media_type: MediaType})[];
results: (TrendingResult<T> & { media_type: MediaType })[];
total_pages: number;
total_results: number;
}
}