UNPKG

@elemental-concept/grappa

Version:

Decorator-powered REST client for Angular and its HttpClient

14 lines (13 loc) 609 B
import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; import { HttpRestClient, ObserveOptions, RestRequest } from '../../public'; import * as i0 from "@angular/core"; export declare class RestClientService<T> implements HttpRestClient<T> { private readonly http; constructor(http: HttpClient); request: (request: RestRequest, observe: ObserveOptions) => Observable<T>; private getBaseUrl; private getBody; static ɵfac: i0.ɵɵFactoryDeclaration<RestClientService<any>, never>; static ɵprov: i0.ɵɵInjectableDeclaration<RestClientService<any>>; }