refactor(common): CleanUp HttpClient's imports (#18120)

PR Close #18120
This commit is contained in:
WilliamKoza 2017-07-14 12:55:45 +02:00 committed by Miško Hevery
parent a3a54299af
commit b4c98305da
5 changed files with 6 additions and 10 deletions

View File

@ -17,7 +17,7 @@ import {HttpHandler} from './backend';
import {HttpHeaders} from './headers'; import {HttpHeaders} from './headers';
import {HttpParams} from './params'; import {HttpParams} from './params';
import {HttpRequest} from './request'; 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. * Construct a JSONP request for the given URL and name of the callback parameter.
* *
* @return an `Observable` of the response object as an `Object` * @return an `Observable` of the response object as an `Object`
*/ */
jsonp(url: string, callbackParam: string): Observable<Object>; jsonp(url: string, callbackParam: string): Observable<Object>;
/** /**
* Construct a JSONP request for the given URL and name of the callback parameter. * Construct a JSONP request for the given URL and name of the callback parameter.
* *
* @return an `Observable` of the response object as type `T`. * @return an `Observable` of the response object as type `T`.
*/ */
jsonp<T>(url: string, callbackParam: string): Observable<T>; jsonp<T>(url: string, callbackParam: string): Observable<T>;

View File

@ -11,7 +11,7 @@ import {Observable} from 'rxjs/Observable';
import {HttpHandler} from './backend'; import {HttpHandler} from './backend';
import {HttpRequest} from './request'; import {HttpRequest} from './request';
import {HttpEvent, HttpResponse} from './response'; import {HttpEvent} from './response';
/** /**
* Intercepts `HttpRequest` and handles them. * Intercepts `HttpRequest` and handles them.

View File

@ -12,7 +12,6 @@ import {Observable} from 'rxjs/Observable';
import {Observer} from 'rxjs/Observer'; import {Observer} from 'rxjs/Observer';
import {HttpBackend, HttpHandler} from './backend'; import {HttpBackend, HttpHandler} from './backend';
import {HttpInterceptor} from './interceptor';
import {HttpRequest} from './request'; import {HttpRequest} from './request';
import {HttpErrorResponse, HttpEvent, HttpEventType, HttpResponse} from './response'; import {HttpErrorResponse, HttpEvent, HttpEventType, HttpResponse} from './response';

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license * 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 {HttpBackend, HttpHandler} from './backend';
import {HttpClient} from './client'; import {HttpClient} from './client';
@ -150,4 +150,4 @@ export class HttpClientModule {
], ],
}) })
export class HttpClientJsonpModule { export class HttpClientJsonpModule {
} }

View File

@ -6,9 +6,6 @@
* found in the LICENSE file at https://angular.io/license * 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'; import {HttpHeaders} from './headers';
/** /**