ggez-banking-sdk
Version:
A Node.js package to handle GGEZ Banking API endpoints, Simplify the process of managing CRUD operations with this efficient and easy-to-use package.
10 lines (9 loc) • 442 B
TypeScript
import type { BaseResult } from "../../types/banking/common/baseresult";
import { type AxiosResponse } from "axios";
import type { ApiResponse } from "../../types";
declare class ResponseHelper {
static onResponse: (res: AxiosResponse) => AxiosResponse;
static onError: (error: any) => AxiosResponse<BaseResult>;
static getApiResponse: <T extends BaseResult>(res: AxiosResponse<T>) => ApiResponse<T>;
}
export { ResponseHelper };