UNPKG

567 BTypeScriptView Raw
1import { Http } from '@angular/http';
2import { Observable } from 'rxjs/Observable';
3import 'rxjs/add/operator/map';
4import { HttpServiceBase } from './HttpService';
5export interface IReadOnlySingleService<TOut> {
6 getItem(): Observable<TOut>;
7}
8export declare class ReadOnlySingleServiceBase<TOut> extends HttpServiceBase implements IReadOnlySingleService<TOut> {
9 constructor(http: Http, baseUrl: string);
10 getItem(): Observable<TOut>;
11 protected getItemInternal(hostUrl: string): Observable<TOut>;
12 protected mapItem(data: any): TOut;
13}