fixed grammar mistakes
This commit is contained in:
@@ -2,7 +2,7 @@ import { BaseEndpoint } from './base';
|
||||
import {
|
||||
AlternativeTitles,
|
||||
AppendToResponse,
|
||||
AppendToResponseMovieKeys,
|
||||
AppendToResponseMovieKey,
|
||||
ChangeOptions,
|
||||
Changes,
|
||||
Credits,
|
||||
@@ -35,7 +35,7 @@ export class MoviesEndpoint extends BaseEndpoint {
|
||||
super(accessToken);
|
||||
}
|
||||
|
||||
async details<T extends AppendToResponseMovieKeys[] | undefined>(
|
||||
async details<T extends AppendToResponseMovieKey[] | undefined>(
|
||||
id: number,
|
||||
appendToResponse?: T
|
||||
) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {
|
||||
AppendToResponse,
|
||||
AppendToResponsePersonKeys,
|
||||
AppendToResponsePersonKey,
|
||||
ChangeOptions,
|
||||
ExternalIds,
|
||||
PageOption,
|
||||
@@ -23,7 +23,7 @@ export class PeopleEndpoint extends BaseEndpoint {
|
||||
super(accessToken);
|
||||
}
|
||||
|
||||
async details<T extends AppendToResponsePersonKeys[] | undefined>(
|
||||
async details<T extends AppendToResponsePersonKey[] | undefined>(
|
||||
id: number,
|
||||
appendToResponse?: T
|
||||
) {
|
||||
|
||||
@@ -2,7 +2,7 @@ import { BaseEndpoint } from './base';
|
||||
import {
|
||||
AlternativeTitles,
|
||||
AppendToResponse,
|
||||
AppendToResponseTvKeys,
|
||||
AppendToResponseTvKey,
|
||||
ChangeOptions,
|
||||
Changes,
|
||||
ContentRatings,
|
||||
@@ -37,7 +37,7 @@ export class TvShowsEndpoint extends BaseEndpoint {
|
||||
super(accessToken);
|
||||
}
|
||||
|
||||
async details<T extends AppendToResponseTvKeys[] | undefined>(
|
||||
async details<T extends AppendToResponseTvKey[] | undefined>(
|
||||
id: number,
|
||||
appendToResponse?: T
|
||||
) {
|
||||
|
||||
@@ -38,7 +38,7 @@ export interface PageOption {
|
||||
page?: number;
|
||||
}
|
||||
|
||||
export type AppendToResponseMovieKeys =
|
||||
export type AppendToResponseMovieKey =
|
||||
| 'images'
|
||||
| 'videos'
|
||||
| 'credits'
|
||||
@@ -54,7 +54,7 @@ export type AppendToResponseMovieKeys =
|
||||
| 'watch/providers'
|
||||
| 'keywords';
|
||||
|
||||
export type AppendToResponseTvKeys =
|
||||
export type AppendToResponseTvKey =
|
||||
| 'content_ratings'
|
||||
| 'images'
|
||||
| 'videos'
|
||||
@@ -72,7 +72,7 @@ export type AppendToResponseTvKeys =
|
||||
| 'screened_theatrically'
|
||||
| 'keywords';
|
||||
|
||||
export type AppendToResponsePersonKeys =
|
||||
export type AppendToResponsePersonKey =
|
||||
| 'images'
|
||||
| 'changes'
|
||||
| 'movie_credits'
|
||||
@@ -83,9 +83,9 @@ export type AppendToResponsePersonKeys =
|
||||
| 'translations';
|
||||
|
||||
type AppendToResponseAllKeys =
|
||||
| AppendToResponseTvKeys
|
||||
| AppendToResponseMovieKeys
|
||||
| AppendToResponsePersonKeys;
|
||||
| AppendToResponseTvKey
|
||||
| AppendToResponseMovieKey
|
||||
| AppendToResponsePersonKey;
|
||||
|
||||
export type AppendToResponseMediaType = 'movie' | 'tvShow' | 'person';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user