Added type defintions for http-rx

This commit is contained in:
SIDENIS\Andrey.Chalkin
2018-06-20 18:04:19 +07:00
parent 86fa899b1f
commit a2d6384e4a
4 changed files with 51 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
// Type definitions for http-rx 1.1
// Project: https://github.com/JasonRammoray/HttpRx
// Definitions by: L2jLiga <https://github.com/L2jLiga>
// Definitions: https://github.com/DefinitelyTyped/http-rx
import { Observable } from 'rxjs';
interface HttpRx {
get(url: string, options: any): Observable<any>;
head(url: string, options: any): Observable<any>;
patch(url: string, options: any): Observable<any>;
post(url: string, options: any): Observable<any>;
put(url: string, options: any): Observable<any>;
'delete'(url: string, options: any): Observable<any>;
}
export = HttpRx;
+6
View File
@@ -0,0 +1,6 @@
{
"private": true,
"dependencies": {
"rxjs": ">=6.2.0"
}
}
+22
View File
@@ -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"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }