@types/http-rx
TypeScript icon, indicating that this package has built-in type declarations

2.0.4 • Public • Published

Installation

npm install --save @types/http-rx

Summary

This package contains type definitions for http-rx (https://github.com/JasonRammoray/HttpRx).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/http-rx.

index.d.ts

import { Observable } from "rxjs";
import request = require("request");

interface ResponseWrapper {
    response: request.Response;
    body: any;
}

interface HttpRx {
    get(url: string, options?: request.CoreOptions): Observable<ResponseWrapper>;

    head(url: string, options?: request.CoreOptions): Observable<ResponseWrapper>;

    patch(url: string, options?: request.CoreOptions): Observable<ResponseWrapper>;

    post(url: string, options?: request.CoreOptions): Observable<ResponseWrapper>;

    put(url: string, options?: request.CoreOptions): Observable<ResponseWrapper>;

    delete(url: string, options?: request.CoreOptions): Observable<ResponseWrapper>;
}

declare const httpRx: HttpRx;
export = httpRx;

Additional Details

Credits

These definitions were written by L2jLiga.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/http-rx

Weekly Downloads

0

Version

2.0.4

License

MIT

Unpacked Size

4.11 kB

Total Files

5

Last publish

Collaborators

  • types