run npm format
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
import { MovieDiscoverResult, SortOption, TvShowDiscoverResult } from '../types';
|
||||
import {
|
||||
MovieDiscoverResult,
|
||||
SortOption,
|
||||
TvShowDiscoverResult,
|
||||
} from '../types';
|
||||
import { BaseEndpoint } from './base';
|
||||
|
||||
const BASE_DISCOVER = '/discover';
|
||||
@@ -65,10 +69,16 @@ export class DiscoverEndpoint extends BaseEndpoint {
|
||||
}
|
||||
|
||||
async movie(options?: MovieQueryOptions): Promise<MovieDiscoverResult> {
|
||||
return await this.api.get<MovieDiscoverResult>(`${BASE_DISCOVER}/movie`, options);
|
||||
return await this.api.get<MovieDiscoverResult>(
|
||||
`${BASE_DISCOVER}/movie`,
|
||||
options
|
||||
);
|
||||
}
|
||||
|
||||
async tvShow(options?: TvShowQueryOptions): Promise<TvShowDiscoverResult> {
|
||||
return await this.api.get<TvShowDiscoverResult>(`${BASE_DISCOVER}/tv`, options);
|
||||
return await this.api.get<TvShowDiscoverResult>(
|
||||
`${BASE_DISCOVER}/tv`,
|
||||
options
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user