feat: add pageOption to the trending endpoint

This commit is contained in:
Netanel Henya
2024-02-23 11:36:05 +02:00
parent 682cf48cb0
commit f99dbac1d2

View File

@@ -3,6 +3,7 @@ import {
TimeWindow,
TrendingResults,
LanguageOption,
PageOption,
} from '../types';
import { BaseEndpoint } from './base';
@@ -14,7 +15,7 @@ export class TrendingEndpoint extends BaseEndpoint {
async trending<T extends TrendingMediaType>(
mediaType: T,
timeWindow: TimeWindow,
options?: LanguageOption
options?: LanguageOption & PageOption
): Promise<TrendingResults<T>> {
return await this.api.get<TrendingResults<T>>(
`/trending/${mediaType}/${timeWindow}`,