UNPKG

test-nut-ui

Version:

<p align="center"> <img alt="logo" src="https://img11.360buyimg.com/imagetools/jfs/t1/211965/25/7152/22022/61b16785E433119bb/aa41d7a9f7e823f3.png" width="150" style="margin-bottom: 10px;"> </p>

28 lines (27 loc) 696 B
export declare class UploadOptions { url: string; name: string; fileType?: string; formData?: FormData; sourceFile: any; method: string; xhrState: string | number; timeout: number; headers: {}; withCredentials: boolean; onStart?: Function; taroFilePath?: string; onProgress?: Function; onSuccess?: Function; onFailure?: Function; beforeXhrUpload?: Function; } export declare class Upload { options: UploadOptions; constructor(options: UploadOptions); upload(): void; } export declare class UploaderTaro extends Upload { constructor(options: UploadOptions); uploadTaro(uploadFile: Function, env: string): void; }