diff --git a/src/main/services/hydra-api.ts b/src/main/services/hydra-api.ts index cba6d874..ac3d153a 100644 --- a/src/main/services/hydra-api.ts +++ b/src/main/services/hydra-api.ts @@ -227,9 +227,9 @@ export class HydraApi { throw err; }; - static async get( + static async get( url: string, - params?: Record, + params?: any, options?: HydraApiOptions ) { if (!options || options.needsAuth) { @@ -243,9 +243,9 @@ export class HydraApi { .catch(this.handleUnauthorizedError); } - static async post( + static async post( url: string, - data?: Record, + data?: any, options?: HydraApiOptions ) { if (!options || options.needsAuth) { @@ -259,9 +259,9 @@ export class HydraApi { .catch(this.handleUnauthorizedError); } - static async put( + static async put( url: string, - data?: Record, + data?: any, options?: HydraApiOptions ) { if (!options || options.needsAuth) { @@ -275,9 +275,9 @@ export class HydraApi { .catch(this.handleUnauthorizedError); } - static async patch( + static async patch( url: string, - data?: Record, + data?: any, options?: HydraApiOptions ) { if (!options || options.needsAuth) { @@ -291,7 +291,7 @@ export class HydraApi { .catch(this.handleUnauthorizedError); } - static async delete(url: string, options?: HydraApiOptions) { + static async delete(url: string, options?: HydraApiOptions) { if (!options || options.needsAuth) { if (!this.isLoggedIn()) throw new UserNotLoggedInError(); await this.revalidateAccessTokenIfExpired();