refactoring: improved types

This commit is contained in:
ner committed 2024-10-10 17:10:37 +03:00
1 parent 272178d668
commit 5c42608e99
10 files changed
+93 -88

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
class Http {
base = 'https://api.themoviedb.org/3';
private base = 'https://api.themoviedb.org/3';
get<T>(url: string, { params }: { params?: Record<string, unknown> } = {}, base?: string): Promise<T> {
const serializedParams = Object.entries(params || {}).reduce((params, [key, value]) => {