npm.io
2.0.4 • Published 2 years ago

@types/http-rx

Licence
MIT
Version
2.0.4
Deps
2
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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.