diff --git a/packages/common/http/src/client.ts b/packages/common/http/src/client.ts index d22918980a..43572d1e6d 100644 --- a/packages/common/http/src/client.ts +++ b/packages/common/http/src/client.ts @@ -17,7 +17,7 @@ import {HttpHandler} from './backend'; import {HttpHeaders} from './headers'; import {HttpParams} from './params'; import {HttpRequest} from './request'; -import {HttpEvent, HttpEventType, HttpResponse} from './response'; +import {HttpEvent, HttpResponse} from './response'; /** @@ -1024,14 +1024,14 @@ export class HttpClient { /** * Construct a JSONP request for the given URL and name of the callback parameter. - * + * * @return an `Observable` of the response object as an `Object` */ jsonp(url: string, callbackParam: string): Observable; /** * Construct a JSONP request for the given URL and name of the callback parameter. - * + * * @return an `Observable` of the response object as type `T`. */ jsonp(url: string, callbackParam: string): Observable; diff --git a/packages/common/http/src/interceptor.ts b/packages/common/http/src/interceptor.ts index f084dc3e3e..a778e83a55 100644 --- a/packages/common/http/src/interceptor.ts +++ b/packages/common/http/src/interceptor.ts @@ -11,7 +11,7 @@ import {Observable} from 'rxjs/Observable'; import {HttpHandler} from './backend'; import {HttpRequest} from './request'; -import {HttpEvent, HttpResponse} from './response'; +import {HttpEvent} from './response'; /** * Intercepts `HttpRequest` and handles them. diff --git a/packages/common/http/src/jsonp.ts b/packages/common/http/src/jsonp.ts index 0d6825c0db..4b25b5da40 100644 --- a/packages/common/http/src/jsonp.ts +++ b/packages/common/http/src/jsonp.ts @@ -12,7 +12,6 @@ import {Observable} from 'rxjs/Observable'; import {Observer} from 'rxjs/Observer'; import {HttpBackend, HttpHandler} from './backend'; -import {HttpInterceptor} from './interceptor'; import {HttpRequest} from './request'; import {HttpErrorResponse, HttpEvent, HttpEventType, HttpResponse} from './response'; diff --git a/packages/common/http/src/module.ts b/packages/common/http/src/module.ts index f3e64b1ed0..f1667dd102 100644 --- a/packages/common/http/src/module.ts +++ b/packages/common/http/src/module.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {Inject, ModuleWithProviders, NgModule, Optional, forwardRef} from '@angular/core'; +import {Inject, ModuleWithProviders, NgModule, Optional} from '@angular/core'; import {HttpBackend, HttpHandler} from './backend'; import {HttpClient} from './client'; @@ -150,4 +150,4 @@ export class HttpClientModule { ], }) export class HttpClientJsonpModule { -} \ No newline at end of file +} diff --git a/packages/common/http/src/response.ts b/packages/common/http/src/response.ts index 9ac007aa0c..0850505cc5 100644 --- a/packages/common/http/src/response.ts +++ b/packages/common/http/src/response.ts @@ -6,9 +6,6 @@ * found in the LICENSE file at https://angular.io/license */ -import {Observable} from 'rxjs/Observable'; -import {empty} from 'rxjs/observable/empty'; - import {HttpHeaders} from './headers'; /**