UNPKG

@quanxi/ui

Version:

全悉组件库

17 lines (16 loc) 517 B
/// <reference types="node" /> import Event from 'events'; import { UploadFile } from './Uploader'; export declare const ee: Event; export declare const ajaxError = "ajaxError"; interface AjaxParam { file: UploadFile; fileKey: string; headers?: Record<string, string>; url: string; method: string; extraData?: Record<string, any> | undefined; onProgress: (event: ProgressEvent<EventTarget>, file: UploadFile) => void; } declare const ajax: (param: AjaxParam) => void; export default ajax;