refactoring: improved types
This commit is contained in:
1 parent
272178d668
commit
5c42608e99
10 files changed
+93
-88
No files matched your search
+1
-1
@@ -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]) => {
|
||||
|
||||
Reference in new issue
Block a user