/** * Created by user on 2019/6/8. */ import { AxiosRequestConfig } from '../../types/axios'; import { AxiosTransformer } from 'axios'; import { IPropertyKey } from 'reflect-metadata-util'; import { ITSValueOrArray } from 'ts-type'; export declare function RequestConfigs(value: Partial): (target: any, propertyName?: IPropertyKey) => void; export declare function RequestConfig(key: K, value: AxiosRequestConfig[K], mergeMode?: boolean): (target: any, propertyName?: IPropertyKey) => void; /** * 越晚執行的放越上面 * * @param {ITSValueOrArray} fn * @returns {(target: any, propertyName?: IPropertyKey) => void} * @constructor */ export declare function TransformRequest(fn: ITSValueOrArray): (target: any, propertyName?: IPropertyKey) => void; /** * 越晚執行的放越上面 */ export declare function TransformResponse(fn: ITSValueOrArray): (target: any, propertyName?: IPropertyKey) => void; export default RequestConfig;