UNPKG

mc-pro-ui

Version:

一个功能强大的 Vue 3 UI 组件库,提供完整的 TypeScript 支持

25 lines (24 loc) 996 B
import { AxiosInstance, AxiosRequestConfig, InternalAxiosRequestConfig, AxiosResponse } from 'axios'; export interface CustomInternalAxiosRequestConfig extends InternalAxiosRequestConfig { loading?: boolean; msg?: boolean; } export interface CustomAxiosResponse extends AxiosResponse { config: CustomInternalAxiosRequestConfig; data: any; } export interface CustomAxiosRequestConfig extends AxiosRequestConfig { loading?: boolean; msg?: boolean; } declare class RequestHttp { service: AxiosInstance; constructor(config: AxiosRequestConfig); get<T>(url: string, params?: object, _object?: {}): Promise<T>; post<T>(url: string, params?: object | string, _object?: {}): Promise<T>; put<T>(url: string, params?: object, _object?: {}): Promise<T>; delete<T>(url: string, params?: any, _object?: {}): Promise<T>; download(url: string, params?: object, _object?: {}): Promise<BlobPart>; } declare const _default: RequestHttp; export default _default;