fx-form-widget
Version:
14 lines (13 loc) • 482 B
TypeScript
import type { AxiosRequestConfig } from 'axios';
interface RequestConfig extends AxiosRequestConfig {
notice?: boolean;
}
type codeType = number;
export declare const DATA_CODE: Map<string, codeType>;
declare function get<T = any>(url?: string, config?: RequestConfig): Promise<T>;
declare function post<T = any>(url?: string, data?: any, config?: RequestConfig): Promise<T>;
declare const HttpClient: {
get: typeof get;
post: typeof post;
};
export default HttpClient;