mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Added type defintions for http-rx
This commit is contained in:
Vendored
+22
@@ -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;
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"rxjs": ">=6.2.0"
|
||||
}
|
||||
}
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user