import { FetcherOptions } from '../interfaces'; /** * ajax fetch method * @param api 接口 URL * @param options 请求参数 * @param responseCallback 返回的数据处理,如果不传,默认按 ajax 方式处理 * * @see https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch */ export default function fetcher(api: string, options?: FetcherOptions, responseCallback?: (res: Response, options: FetcherOptions) => any): Promise;