import { MediaType, TimeWindow, TrendingResults } from '../types'; import { BaseEndpoint } from './base'; export class TrendingEndpoint extends BaseEndpoint { constructor(accessToken: string) { super(accessToken); } async trending(mediaType : T, timeWindow: TimeWindow): Promise> { return await this.api.get>(`/trending/${mediaType}/${timeWindow}`); } }