Merge branch 'master' into feature/append-result
This commit is contained in:
@@ -3,7 +3,7 @@ import { parseOptions } from './utils';
|
||||
|
||||
const BASE_URL_V3 = 'https://api.themoviedb.org/3';
|
||||
|
||||
export default class Api {
|
||||
export class Api {
|
||||
constructor(private accessToken: string) {
|
||||
this.accessToken = accessToken;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Api from '../api';
|
||||
import { Api } from '../api';
|
||||
|
||||
export class BaseEndpoint {
|
||||
protected api: Api;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import TMDB from './tmdb';
|
||||
import { TMDB } from './tmdb';
|
||||
|
||||
export * from './types';
|
||||
export * from './utils';
|
||||
|
||||
export default TMDB;
|
||||
export { TMDB };
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
CollectionsEndpoint,
|
||||
} from './endpoints';
|
||||
|
||||
export default class TMDB {
|
||||
export class TMDB {
|
||||
private readonly accessToken: string;
|
||||
|
||||
constructor(accessToken: string) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export function parseOptions(options?: Record<string, any>): string {
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
return options ? new URLSearchParams(Object.entries(options)).toString() : '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user