docs(common): improve deprecation notices to be parsed by tslint
Closes: #24237 Closes: #24249
This commit is contained in:

committed by
Victor Berchet

parent
5794506c64
commit
069062236c
@ -13,7 +13,7 @@ import {Injectable} from '@angular/core';
|
||||
*
|
||||
* Take care not to evaluate this in non-browser contexts.
|
||||
*
|
||||
* @deprecated use @angular/common/http instead
|
||||
* @deprecated see https://angular.io/guide/http
|
||||
*/
|
||||
@Injectable()
|
||||
export class BrowserXhr {
|
||||
|
@ -23,7 +23,7 @@ const JSONP_ERR_WRONG_METHOD = 'JSONP requests must use GET request method.';
|
||||
/**
|
||||
* Base class for an in-flight JSONP request.
|
||||
*
|
||||
* @deprecated use @angular/common/http instead
|
||||
* @deprecated see https://angular.io/guide/http
|
||||
*/
|
||||
export class JSONPConnection implements Connection {
|
||||
private _id: string;
|
||||
@ -136,7 +136,7 @@ export class JSONPConnection implements Connection {
|
||||
/**
|
||||
* A {@link ConnectionBackend} that uses the JSONP strategy of making requests.
|
||||
*
|
||||
* @deprecated use @angular/common/http instead
|
||||
* @deprecated see https://angular.io/guide/http
|
||||
*/
|
||||
@Injectable()
|
||||
export class JSONPBackend extends ConnectionBackend {
|
||||
|
@ -28,7 +28,7 @@ const XSSI_PREFIX = /^\)\]\}',?\n/;
|
||||
* This class would typically not be created or interacted with directly inside applications, though
|
||||
* the {@link MockConnection} may be interacted with in tests.
|
||||
*
|
||||
* @deprecated use @angular/common/http instead
|
||||
* @deprecated see https://angular.io/guide/http
|
||||
*/
|
||||
export class XHRConnection implements Connection {
|
||||
request: Request;
|
||||
@ -187,7 +187,7 @@ export class XHRConnection implements Connection {
|
||||
* with different `cookieName` and `headerName` values. See the main HTTP documentation for more
|
||||
* details.
|
||||
*
|
||||
* @deprecated use @angular/common/http instead
|
||||
* @deprecated see https://angular.io/guide/http
|
||||
*/
|
||||
export class CookieXSRFStrategy implements XSRFStrategy {
|
||||
constructor(
|
||||
@ -225,7 +225,7 @@ export class CookieXSRFStrategy implements XSRFStrategy {
|
||||
* }
|
||||
* }
|
||||
* ```
|
||||
* @deprecated use @angular/common/http instead
|
||||
* @deprecated see https://angular.io/guide/http
|
||||
*/
|
||||
@Injectable()
|
||||
export class XHRBackend implements ConnectionBackend {
|
||||
|
Reference in New Issue
Block a user