UNPKG

vue-launchers

Version:
15 lines (14 loc) 1.16 kB
import { RequestHttpEnum, ContentTypeEnum } from '../enums/httpEnum'; export declare const get: (url: string, params?: object) => Promise<import("axios").AxiosResponse<any, any>>; export declare const post: (url: string, data?: object, headersType?: string) => Promise<import("axios").AxiosResponse<any, any>>; export declare const patch: (url: string, data?: object, headersType?: string) => Promise<import("axios").AxiosResponse<any, any>>; export declare const put: (url: string, data?: object, headersType?: ContentTypeEnum) => Promise<import("axios").AxiosResponse<any, any>>; export declare const del: (url: string, params?: object) => Promise<import("axios").AxiosResponse<any, any>>; export declare const http: (type?: RequestHttpEnum) => (url: string, data?: object, headersType?: string) => Promise<import("axios").AxiosResponse<any, any>>; export declare const translateStr: (target: string | object) => any; /** * * 自定义请求 * @param targetParams 当前组件参数 * @param globalParams 全局参数 */ export declare const customizeHttp: (targetParams: any, globalParams: any) => Promise<import("axios").AxiosResponse<any, any>>;