feat: add pageOption to the trending endpoint
This commit is contained in:
@@ -3,6 +3,7 @@ import {
|
|||||||
TimeWindow,
|
TimeWindow,
|
||||||
TrendingResults,
|
TrendingResults,
|
||||||
LanguageOption,
|
LanguageOption,
|
||||||
|
PageOption,
|
||||||
} from '../types';
|
} from '../types';
|
||||||
import { BaseEndpoint } from './base';
|
import { BaseEndpoint } from './base';
|
||||||
|
|
||||||
@@ -14,7 +15,7 @@ export class TrendingEndpoint extends BaseEndpoint {
|
|||||||
async trending<T extends TrendingMediaType>(
|
async trending<T extends TrendingMediaType>(
|
||||||
mediaType: T,
|
mediaType: T,
|
||||||
timeWindow: TimeWindow,
|
timeWindow: TimeWindow,
|
||||||
options?: LanguageOption
|
options?: LanguageOption & PageOption
|
||||||
): Promise<TrendingResults<T>> {
|
): Promise<TrendingResults<T>> {
|
||||||
return await this.api.get<TrendingResults<T>>(
|
return await this.api.get<TrendingResults<T>>(
|
||||||
`/trending/${mediaType}/${timeWindow}`,
|
`/trending/${mediaType}/${timeWindow}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user