UNPKG

@nvwa-app/frontend-commons-web

Version:
9 lines 595 B
import { HttpResponse, IHttpService, HttpUploadFileResponse } from "@nvwa-app/frontend-commons-core"; export declare class WebHttpService implements IHttpService { private axiosInstance; private toLoginPage; constructor(baseUrl: string, toLoginPage: () => void, timeout?: number); request<T = any>(handleUnauthorized: () => void, method: string, url: string, data?: any, headers?: Record<string, string>, timeout?: number): Promise<HttpResponse<T>>; uploadFile(handleUnauthorized: () => void, file: File): Promise<HttpUploadFileResponse>; } //# sourceMappingURL=http.d.ts.map