UNPKG

ng-rest-http

Version:

http client module for Angular [ tested for angular6 ]

11 lines (10 loc) 426 B
import { HttpClient, HttpEvent } from '@angular/common/http'; import { Observable } from 'rxjs'; import * as i0 from "@angular/core"; export declare class UploadService { private http; constructor(http: HttpClient); uploadFile(url: string, file: File): Observable<HttpEvent<any>>; static ɵfac: i0.ɵɵFactoryDeclaration<UploadService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<UploadService>; }