UNPKG

angular-news-api

Version:

This Library provides everything you need to use the NewsAPI from you Angular app the way it should be: using Observables, Types and Dependency Injection.

11 lines (10 loc) 543 B
import { TopHeadlinesConfig, TopHeadlinesResponse, EverythingResponse, EverythingConfig, SourcesConfig } from '../interfaces/newsapi.models'; import { Observable } from 'rxjs'; export declare class NewsApiService { private newsApiConfigService; private newsApi; constructor(newsApiConfigService: any); topHeadlines(config: TopHeadlinesConfig): Observable<TopHeadlinesResponse>; everything(config: EverythingConfig): Observable<EverythingResponse>; sources(config: SourcesConfig): Observable<SourcesConfig>; }