Files
dpu-shared/dist/fastify.d.ts

16 lines
495 B
TypeScript

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