Files
dpu-shared/dist/fastify.d.ts
2026-02-08 12:52:31 +01:00

22 lines
669 B
TypeScript

import type { AxiosInstance } from "axios";
export type ServiceResult<T = unknown> = {
result: T;
successful: boolean;
};
export declare class API_Error {
error: string;
constructor(error: string);
}
export declare abstract class BaseClient {
private axiosInstance;
constructor(axiosInstance: AxiosInstance);
getAxios(): AxiosInstance;
}
export declare abstract class BaseService<T> {
private client;
constructor(client: T);
getClient(): T;
getSuccessfulResult<R = unknown>(result: R): ServiceResult<R>;
getErrorResult(errorMessage: string, error?: unknown): ServiceResult<string>;
}
//# sourceMappingURL=fastify.d.ts.map