Generic Commit; Most likely a fix or small feature

This commit is contained in:
Darius
2025-11-21 16:24:04 +01:00
parent bf7f3ee77c
commit a3689f4cd2

View File

@@ -5,21 +5,29 @@ export type ServiceResult<T = unknown> = {
successful: boolean; successful: boolean;
}; };
export abstract class Client { export abstract class BaseClient {
private axiosInstance: AxiosInstance; private axiosInstance: AxiosInstance;
constructor(axiosInstance: AxiosInstance) { constructor(axiosInstance: AxiosInstance) {
this.axiosInstance = axiosInstance; this.axiosInstance = axiosInstance;
} }
getAxios(): AxiosInstance {
return this.axiosInstance;
}
} }
export abstract class Service<T> { export abstract class BaseService<T> {
private client: T; private client: T;
constructor(client: T) { constructor(client: T) {
this.client = client; this.client = client;
} }
getClient(): T {
return this.client;
}
getSuccessfulResult<R = unknown>(result: R): ServiceResult<R> { getSuccessfulResult<R = unknown>(result: R): ServiceResult<R> {
return { return {
result, result,