@topgroup/diginext
Version:
A BUILD SERVER & CLI to deploy apps to any Kubernetes clusters.
17 lines • 572 B
TypeScript
import type { AxiosRequestConfig } from "axios";
interface FetchApiOptions<T = any> extends AxiosRequestConfig {
url: string;
access_token?: string;
api_key?: string;
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
data?: T | any;
isDebugging?: boolean;
}
export interface FetchApiResponse<T extends Object> {
status?: 0 | 1;
messages?: string[];
data?: T | T[];
}
export declare function fetchApi<T = any>(options: FetchApiOptions<T>): Promise<FetchApiResponse<T>>;
export default fetchApi;
//# sourceMappingURL=fetchApi.d.ts.map