diff --git a/types/http-rx/http-rx-tests.ts b/types/http-rx/http-rx-tests.ts index 9a8a87be08..2cd581aae6 100644 --- a/types/http-rx/http-rx-tests.ts +++ b/types/http-rx/http-rx-tests.ts @@ -1,2 +1,20 @@ import { Observable } from 'rxjs'; import httpRx = require('http-rx'); + +httpRx.get('', {}).subscribe(() => {}); +httpRx.get('', {}).pipe(); + +httpRx.head('', {}).subscribe(() => {}); +httpRx.head('', {}).pipe(); + +httpRx.patch('', {}).subscribe(() => {}); +httpRx.patch('', {}).pipe(); + +httpRx.post('', {}).subscribe(() => {}); +httpRx.post('', {}).pipe(); + +httpRx.put('', {}).subscribe(() => {}); +httpRx.put('', {}).pipe(); + +httpRx.delete('', {}).subscribe(() => {}); +httpRx.delete('', {}).pipe(); diff --git a/types/http-rx/index.d.ts b/types/http-rx/index.d.ts index 4aca59f257..7cd130e30a 100644 --- a/types/http-rx/index.d.ts +++ b/types/http-rx/index.d.ts @@ -19,4 +19,5 @@ interface HttpRx { 'delete'(url: string, options: any): Observable; } -export = HttpRx; +declare const httpRx: HttpRx; +export = httpRx;