emulators
Version:
Emulators (dos) with standartized API
10 lines (9 loc) • 333 B
TypeScript
export interface XhrOptions {
method?: string;
progress?: (total: number, loaded: number) => void;
data?: string;
responseType?: XMLHttpRequestResponseType;
}
export declare const httpRequest: typeof XhrRequest;
declare function XhrRequest(url: string, options: XhrOptions): Promise<string | ArrayBuffer>;
export {};