mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-16 05:18:38 +01:00
19 lines
No EOL
402 B
TypeScript
19 lines
No EOL
402 B
TypeScript
interface HttpContext {
|
|
xhr: XMLHttpRequest;
|
|
}
|
|
|
|
declare function executeHttp(
|
|
this: HttpContext,
|
|
url: string,
|
|
options: {
|
|
method: string;
|
|
headers: Record<string, string>;
|
|
body: any;
|
|
progress: (event: ProgressEvent) => void;
|
|
speed: (event: ProgressEvent) => void;
|
|
}
|
|
): Promise<any>;
|
|
|
|
export function init();
|
|
|
|
export default function(any): void; |