Compare commits
8 Commits
chore/add-
...
bump-1.7.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
00709c1d28 | ||
|
|
9c14fb80fd | ||
|
|
c56ecbef47 | ||
|
|
876d2cac0f | ||
|
|
9dae7144b2 | ||
|
|
f99dbac1d2 | ||
|
|
43f5d16dc3 | ||
|
|
682cf48cb0 |
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "tmdb-ts",
|
"name": "tmdb-ts",
|
||||||
"version": "1.6.1",
|
"version": "1.7.1",
|
||||||
"description": "TMDB v3 library wrapper",
|
"description": "TMDB v3 library wrapper",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
|||||||
@@ -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}`,
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ export interface Configuration {
|
|||||||
|
|
||||||
export const enum BackdropSizes {
|
export const enum BackdropSizes {
|
||||||
W300 = 'w300',
|
W300 = 'w300',
|
||||||
|
W500 = 'w500',
|
||||||
W780 = 'w780',
|
W780 = 'w780',
|
||||||
W1280 = 'w1280',
|
W1280 = 'w1280',
|
||||||
ORIGINAL = 'original',
|
ORIGINAL = 'original',
|
||||||
|
|||||||
Reference in New Issue
Block a user