From a2d6384e4a8b249fbb2066afb7fae70336d9f92f Mon Sep 17 00:00:00 2001 From: "SIDENIS\\Andrey.Chalkin" Date: Wed, 20 Jun 2018 18:04:19 +0700 Subject: [PATCH] Added type defintions for http-rx --- types/http-rx/index.d.ts | 22 ++++++++++++++++++++++ types/http-rx/package.json | 6 ++++++ types/http-rx/tsconfig.json | 22 ++++++++++++++++++++++ types/http-rx/tslint.json | 1 + 4 files changed, 51 insertions(+) create mode 100644 types/http-rx/index.d.ts create mode 100644 types/http-rx/package.json create mode 100644 types/http-rx/tsconfig.json create mode 100644 types/http-rx/tslint.json diff --git a/types/http-rx/index.d.ts b/types/http-rx/index.d.ts new file mode 100644 index 0000000000..cd2d7cbcdc --- /dev/null +++ b/types/http-rx/index.d.ts @@ -0,0 +1,22 @@ +// Type definitions for http-rx 1.1 +// Project: https://github.com/JasonRammoray/HttpRx +// Definitions by: L2jLiga +// Definitions: https://github.com/DefinitelyTyped/http-rx + +import { Observable } from 'rxjs'; + +interface HttpRx { + get(url: string, options: any): Observable; + + head(url: string, options: any): Observable; + + patch(url: string, options: any): Observable; + + post(url: string, options: any): Observable; + + put(url: string, options: any): Observable; + + 'delete'(url: string, options: any): Observable; +} + +export = HttpRx; diff --git a/types/http-rx/package.json b/types/http-rx/package.json new file mode 100644 index 0000000000..5c3a35fe37 --- /dev/null +++ b/types/http-rx/package.json @@ -0,0 +1,6 @@ +{ + "private": true, + "dependencies": { + "rxjs": ">=6.2.0" + } +} diff --git a/types/http-rx/tsconfig.json b/types/http-rx/tsconfig.json new file mode 100644 index 0000000000..97ce5cee11 --- /dev/null +++ b/types/http-rx/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "strictFunctionTypes": true + }, + "files": [ + "index.d.ts" + ] +} diff --git a/types/http-rx/tslint.json b/types/http-rx/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/http-rx/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }