// Type definitions for http-rx 2.0 // Project: https://github.com/JasonRammoray/HttpRx // Definitions by: L2jLiga // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 import { Observable } from 'rxjs'; import request = require('request'); interface ResponseWrapper { response: request.Response; body: any; } interface HttpRx { get(url: string, options?: request.CoreOptions): Observable; head(url: string, options?: request.CoreOptions): Observable; patch(url: string, options?: request.CoreOptions): Observable; post(url: string, options?: request.CoreOptions): Observable; put(url: string, options?: request.CoreOptions): Observable; delete(url: string, options?: request.CoreOptions): Observable; } declare const httpRx: HttpRx; export = httpRx;