UNPKG

@snail-js/api

Version:

Http Request with Decorators Api, build on axios

7 lines (6 loc) 467 B
import "reflect-metadata"; import { AxiosProgressEvent } from "axios"; export declare const UPLOAD_PROGRESS_KEY: unique symbol; export declare const UploadProgress: (handler: (progressEvent: AxiosProgressEvent) => void) => (target: any, propertyKey: string) => void; export declare const DOWNLOAD_PROGRESS_KEY: unique symbol; export declare const DownloadProgress: (handler: (progressEvent: AxiosProgressEvent) => void) => (target: any, propertyKey: string) => void;