Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- tools/public_api_guard/common/http.d.ts Golden file
- +++ tools/public_api_guard/common/http.d.ts Generated API
- @@ -8,72 +8,12 @@
- /** @stable */
- export declare class HttpClient {
- constructor(handler: HttpHandler);
- - delete<T>(url: string, options?: {
- - headers?: HttpHeaders | {
- - [header: string]: string | string[];
- - };
- - observe?: 'body';
- - params?: HttpParams | {
- - [param: string]: string | string[];
- - };
- - reportProgress?: boolean;
- - responseType?: 'json';
- - withCredentials?: boolean;
- - }): Observable<T>;
- - delete(url: string, options?: {
- - headers?: HttpHeaders | {
- - [header: string]: string | string[];
- - };
- - observe?: 'body';
- - params?: HttpParams | {
- - [param: string]: string | string[];
- - };
- - reportProgress?: boolean;
- - responseType?: 'json';
- - withCredentials?: boolean;
- - }): Observable<Object>;
- delete(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe?: 'body';
- - params?: HttpParams | {
- - [param: string]: string | string[];
- - };
- - reportProgress?: boolean;
- - responseType: 'arraybuffer';
- - withCredentials?: boolean;
- - }): Observable<ArrayBuffer>;
- - delete(url: string, options: {
- - headers?: HttpHeaders | {
- - [header: string]: string | string[];
- - };
- - observe?: 'body';
- - params?: HttpParams | {
- - [param: string]: string | string[];
- - };
- - reportProgress?: boolean;
- - responseType: 'blob';
- - withCredentials?: boolean;
- - }): Observable<Blob>;
- - delete(url: string, options: {
- - headers?: HttpHeaders | {
- - [header: string]: string | string[];
- - };
- - observe?: 'body';
- - params?: HttpParams | {
- - [param: string]: string | string[];
- - };
- - reportProgress?: boolean;
- - responseType: 'text';
- - withCredentials?: boolean;
- - }): Observable<string>;
- - delete(url: string, options: {
- - headers?: HttpHeaders | {
- - [header: string]: string | string[];
- - };
- observe: 'events';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- @@ -116,20 +56,8 @@
- reportProgress?: boolean;
- responseType?: 'json';
- withCredentials?: boolean;
- }): Observable<HttpEvent<Object>>;
- - delete<T>(url: string, options: {
- - headers?: HttpHeaders | {
- - [header: string]: string | string[];
- - };
- - observe: 'events';
- - params?: HttpParams | {
- - [param: string]: string | string[];
- - };
- - reportProgress?: boolean;
- - responseType?: 'json';
- - withCredentials?: boolean;
- - }): Observable<HttpEvent<T>>;
- delete(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- @@ -176,33 +104,45 @@
- reportProgress?: boolean;
- responseType?: 'json';
- withCredentials?: boolean;
- }): Observable<HttpResponse<Object>>;
- - delete<T>(url: string, options: {
- + delete(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe: 'response';
- + observe?: 'body';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType?: 'json';
- + responseType: 'arraybuffer';
- withCredentials?: boolean;
- - }): Observable<HttpResponse<T>>;
- - get(url: string, options: {
- + }): Observable<ArrayBuffer>;
- + delete(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe: 'events';
- + observe?: 'body';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- + responseType: 'blob';
- + withCredentials?: boolean;
- + }): Observable<Blob>;
- + delete(url: string, options: {
- + headers?: HttpHeaders | {
- + [header: string]: string | string[];
- + };
- + observe?: 'body';
- + params?: HttpParams | {
- + [param: string]: string | string[];
- + };
- + reportProgress?: boolean;
- responseType: 'text';
- withCredentials?: boolean;
- - }): Observable<HttpEvent<string>>;
- - get(url: string, options?: {
- + }): Observable<string>;
- + delete(url: string, options?: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- observe?: 'body';
- @@ -212,44 +152,44 @@
- reportProgress?: boolean;
- responseType?: 'json';
- withCredentials?: boolean;
- }): Observable<Object>;
- - get(url: string, options: {
- + delete<T>(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe?: 'body';
- + observe: 'events';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType: 'arraybuffer';
- + responseType?: 'json';
- withCredentials?: boolean;
- - }): Observable<ArrayBuffer>;
- - get(url: string, options: {
- + }): Observable<HttpEvent<T>>;
- + delete<T>(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe?: 'body';
- + observe: 'response';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType: 'blob';
- + responseType?: 'json';
- withCredentials?: boolean;
- - }): Observable<Blob>;
- - get(url: string, options: {
- + }): Observable<HttpResponse<T>>;
- + delete<T>(url: string, options?: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- observe?: 'body';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType: 'text';
- + responseType?: 'json';
- withCredentials?: boolean;
- - }): Observable<string>;
- + }): Observable<T>;
- get(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- @@ -272,20 +212,20 @@
- reportProgress?: boolean;
- responseType: 'blob';
- withCredentials?: boolean;
- }): Observable<HttpEvent<Blob>>;
- - get<T>(url: string, options?: {
- + get(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe?: 'body';
- + observe: 'events';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType?: 'json';
- + responseType: 'text';
- withCredentials?: boolean;
- - }): Observable<T>;
- + }): Observable<HttpEvent<string>>;
- get(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- @@ -296,20 +236,8 @@
- reportProgress?: boolean;
- responseType?: 'json';
- withCredentials?: boolean;
- }): Observable<HttpEvent<Object>>;
- - get<T>(url: string, options: {
- - headers?: HttpHeaders | {
- - [header: string]: string | string[];
- - };
- - observe: 'events';
- - params?: HttpParams | {
- - [param: string]: string | string[];
- - };
- - reportProgress?: boolean;
- - responseType?: 'json';
- - withCredentials?: boolean;
- - }): Observable<HttpEvent<T>>;
- get(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- @@ -356,57 +284,69 @@
- reportProgress?: boolean;
- responseType?: 'json';
- withCredentials?: boolean;
- }): Observable<HttpResponse<Object>>;
- - get<T>(url: string, options: {
- + get(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe: 'response';
- + observe?: 'body';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType?: 'json';
- + responseType: 'arraybuffer';
- withCredentials?: boolean;
- - }): Observable<HttpResponse<T>>;
- - head<T>(url: string, options?: {
- + }): Observable<ArrayBuffer>;
- + get(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- observe?: 'body';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType?: 'json';
- + responseType: 'blob';
- withCredentials?: boolean;
- - }): Observable<T>;
- - head(url: string, options?: {
- + }): Observable<Blob>;
- + get(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- observe?: 'body';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- + responseType: 'text';
- + withCredentials?: boolean;
- + }): Observable<string>;
- + get(url: string, options?: {
- + headers?: HttpHeaders | {
- + [header: string]: string | string[];
- + };
- + observe?: 'body';
- + params?: HttpParams | {
- + [param: string]: string | string[];
- + };
- + reportProgress?: boolean;
- responseType?: 'json';
- withCredentials?: boolean;
- }): Observable<Object>;
- - head<T>(url: string, options: {
- + get<T>(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe: 'response';
- + observe: 'events';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- responseType?: 'json';
- withCredentials?: boolean;
- - }): Observable<HttpResponse<T>>;
- - head(url: string, options: {
- + }): Observable<HttpEvent<T>>;
- + get<T>(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- observe: 'response';
- @@ -415,57 +355,57 @@
- };
- reportProgress?: boolean;
- responseType?: 'json';
- withCredentials?: boolean;
- - }): Observable<HttpResponse<Object>>;
- - head(url: string, options: {
- + }): Observable<HttpResponse<T>>;
- + get<T>(url: string, options?: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe: 'response';
- + observe?: 'body';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType: 'text';
- + responseType?: 'json';
- withCredentials?: boolean;
- - }): Observable<HttpResponse<string>>;
- + }): Observable<T>;
- head(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe: 'response';
- + observe: 'events';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType: 'blob';
- + responseType: 'arraybuffer';
- withCredentials?: boolean;
- - }): Observable<HttpResponse<Blob>>;
- + }): Observable<HttpEvent<ArrayBuffer>>;
- head(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe: 'response';
- + observe: 'events';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType: 'arraybuffer';
- + responseType: 'blob';
- withCredentials?: boolean;
- - }): Observable<HttpResponse<ArrayBuffer>>;
- - head<T>(url: string, options: {
- + }): Observable<HttpEvent<Blob>>;
- + head(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- observe: 'events';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType?: 'json';
- + responseType: 'text';
- withCredentials?: boolean;
- - }): Observable<HttpEvent<T>>;
- + }): Observable<HttpEvent<string>>;
- head(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- @@ -480,52 +420,64 @@
- head(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe: 'events';
- + observe: 'response';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType: 'text';
- + responseType: 'arraybuffer';
- withCredentials?: boolean;
- - }): Observable<HttpEvent<string>>;
- + }): Observable<HttpResponse<ArrayBuffer>>;
- head(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe: 'events';
- + observe: 'response';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- responseType: 'blob';
- withCredentials?: boolean;
- - }): Observable<HttpEvent<Blob>>;
- + }): Observable<HttpResponse<Blob>>;
- head(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe: 'events';
- + observe: 'response';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType: 'arraybuffer';
- + responseType: 'text';
- withCredentials?: boolean;
- - }): Observable<HttpEvent<ArrayBuffer>>;
- + }): Observable<HttpResponse<string>>;
- head(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- + observe: 'response';
- + params?: HttpParams | {
- + [param: string]: string | string[];
- + };
- + reportProgress?: boolean;
- + responseType?: 'json';
- + withCredentials?: boolean;
- + }): Observable<HttpResponse<Object>>;
- + head(url: string, options: {
- + headers?: HttpHeaders | {
- + [header: string]: string | string[];
- + };
- observe?: 'body';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType: 'text';
- + responseType: 'arraybuffer';
- withCredentials?: boolean;
- - }): Observable<string>;
- + }): Observable<ArrayBuffer>;
- head(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- @@ -545,61 +497,61 @@
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType: 'arraybuffer';
- + responseType: 'text';
- withCredentials?: boolean;
- - }): Observable<ArrayBuffer>;
- - jsonp<T>(url: string, callbackParam: string): Observable<T>;
- - jsonp(url: string, callbackParam: string): Observable<Object>;
- - options(url: string, options: {
- + }): Observable<string>;
- + head(url: string, options?: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe: 'events';
- + observe?: 'body';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- responseType?: 'json';
- withCredentials?: boolean;
- - }): Observable<HttpEvent<Object>>;
- - options(url: string, options: {
- + }): Observable<Object>;
- + head<T>(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe?: 'body';
- + observe: 'events';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType: 'arraybuffer';
- + responseType?: 'json';
- withCredentials?: boolean;
- - }): Observable<ArrayBuffer>;
- - options(url: string, options: {
- + }): Observable<HttpEvent<T>>;
- + head<T>(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe?: 'body';
- + observe: 'response';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType: 'blob';
- + responseType?: 'json';
- withCredentials?: boolean;
- - }): Observable<Blob>;
- - options(url: string, options: {
- + }): Observable<HttpResponse<T>>;
- + head<T>(url: string, options?: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- observe?: 'body';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType: 'text';
- + responseType?: 'json';
- withCredentials?: boolean;
- - }): Observable<string>;
- + }): Observable<T>;
- + jsonp(url: string, callbackParam: string): Observable<Object>;
- + jsonp<T>(url: string, callbackParam: string): Observable<T>;
- options(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- @@ -634,32 +586,20 @@
- reportProgress?: boolean;
- responseType: 'text';
- withCredentials?: boolean;
- }): Observable<HttpEvent<string>>;
- - options<T>(url: string, options?: {
- + options(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe?: 'body';
- - params?: HttpParams | {
- - [param: string]: string | string[];
- - };
- - reportProgress?: boolean;
- - responseType?: 'json';
- - withCredentials?: boolean;
- - }): Observable<T>;
- - options<T>(url: string, options: {
- - headers?: HttpHeaders | {
- - [header: string]: string | string[];
- - };
- observe: 'events';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- responseType?: 'json';
- withCredentials?: boolean;
- - }): Observable<HttpEvent<T>>;
- + }): Observable<HttpEvent<Object>>;
- options(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- @@ -706,92 +646,92 @@
- reportProgress?: boolean;
- responseType?: 'json';
- withCredentials?: boolean;
- }): Observable<HttpResponse<Object>>;
- - options<T>(url: string, options: {
- + options(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe: 'response';
- + observe?: 'body';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType?: 'json';
- + responseType: 'arraybuffer';
- withCredentials?: boolean;
- - }): Observable<HttpResponse<T>>;
- - options(url: string, options?: {
- + }): Observable<ArrayBuffer>;
- + options(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- observe?: 'body';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType?: 'json';
- + responseType: 'blob';
- withCredentials?: boolean;
- - }): Observable<Object>;
- - patch(url: string, body: any | null, options: {
- + }): Observable<Blob>;
- + options(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe: 'events';
- + observe?: 'body';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType: 'blob';
- + responseType: 'text';
- withCredentials?: boolean;
- - }): Observable<HttpEvent<Blob>>;
- - patch(url: string, body: any | null, options: {
- + }): Observable<string>;
- + options(url: string, options?: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe: 'events';
- + observe?: 'body';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType: 'text';
- + responseType?: 'json';
- withCredentials?: boolean;
- - }): Observable<HttpEvent<string>>;
- - patch(url: string, body: any | null, options: {
- + }): Observable<Object>;
- + options<T>(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe?: 'body';
- + observe: 'events';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType: 'arraybuffer';
- + responseType?: 'json';
- withCredentials?: boolean;
- - }): Observable<ArrayBuffer>;
- - patch(url: string, body: any | null, options: {
- + }): Observable<HttpEvent<T>>;
- + options<T>(url: string, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe?: 'body';
- + observe: 'response';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType: 'blob';
- + responseType?: 'json';
- withCredentials?: boolean;
- - }): Observable<Blob>;
- - patch(url: string, body: any | null, options: {
- + }): Observable<HttpResponse<T>>;
- + options<T>(url: string, options?: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- observe?: 'body';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType: 'text';
- + responseType?: 'json';
- withCredentials?: boolean;
- - }): Observable<string>;
- + }): Observable<T>;
- patch(url: string, body: any | null, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- @@ -802,32 +742,32 @@
- reportProgress?: boolean;
- responseType: 'arraybuffer';
- withCredentials?: boolean;
- }): Observable<HttpEvent<ArrayBuffer>>;
- - patch<T>(url: string, body: any | null, options?: {
- + patch(url: string, body: any | null, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe?: 'body';
- + observe: 'events';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType?: 'json';
- + responseType: 'blob';
- withCredentials?: boolean;
- - }): Observable<T>;
- - patch(url: string, body: any | null, options?: {
- + }): Observable<HttpEvent<Blob>>;
- + patch(url: string, body: any | null, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe?: 'body';
- + observe: 'events';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType?: 'json';
- + responseType: 'text';
- withCredentials?: boolean;
- - }): Observable<Object>;
- + }): Observable<HttpEvent<string>>;
- patch(url: string, body: any | null, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- @@ -838,20 +778,8 @@
- reportProgress?: boolean;
- responseType?: 'json';
- withCredentials?: boolean;
- }): Observable<HttpEvent<Object>>;
- - patch<T>(url: string, body: any | null, options: {
- - headers?: HttpHeaders | {
- - [header: string]: string | string[];
- - };
- - observe: 'events';
- - params?: HttpParams | {
- - [param: string]: string | string[];
- - };
- - reportProgress?: boolean;
- - responseType?: 'json';
- - withCredentials?: boolean;
- - }): Observable<HttpEvent<T>>;
- patch(url: string, body: any | null, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- @@ -898,33 +826,45 @@
- reportProgress?: boolean;
- responseType?: 'json';
- withCredentials?: boolean;
- }): Observable<HttpResponse<Object>>;
- - patch<T>(url: string, body: any | null, options: {
- + patch(url: string, body: any | null, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe: 'response';
- + observe?: 'body';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType?: 'json';
- + responseType: 'arraybuffer';
- withCredentials?: boolean;
- - }): Observable<HttpResponse<T>>;
- - post(url: string, body: any | null, options: {
- + }): Observable<ArrayBuffer>;
- + patch(url: string, body: any | null, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe: 'events';
- + observe?: 'body';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- + responseType: 'blob';
- + withCredentials?: boolean;
- + }): Observable<Blob>;
- + patch(url: string, body: any | null, options: {
- + headers?: HttpHeaders | {
- + [header: string]: string | string[];
- + };
- + observe?: 'body';
- + params?: HttpParams | {
- + [param: string]: string | string[];
- + };
- + reportProgress?: boolean;
- responseType: 'text';
- withCredentials?: boolean;
- - }): Observable<HttpEvent<string>>;
- - post(url: string, body: any | null, options?: {
- + }): Observable<string>;
- + patch(url: string, body: any | null, options?: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- observe?: 'body';
- @@ -934,44 +874,44 @@
- reportProgress?: boolean;
- responseType?: 'json';
- withCredentials?: boolean;
- }): Observable<Object>;
- - post(url: string, body: any | null, options: {
- + patch<T>(url: string, body: any | null, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe?: 'body';
- + observe: 'events';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType: 'arraybuffer';
- + responseType?: 'json';
- withCredentials?: boolean;
- - }): Observable<ArrayBuffer>;
- - post(url: string, body: any | null, options: {
- + }): Observable<HttpEvent<T>>;
- + patch<T>(url: string, body: any | null, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe?: 'body';
- + observe: 'response';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType: 'blob';
- + responseType?: 'json';
- withCredentials?: boolean;
- - }): Observable<Blob>;
- - post(url: string, body: any | null, options: {
- + }): Observable<HttpResponse<T>>;
- + patch<T>(url: string, body: any | null, options?: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- observe?: 'body';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType: 'text';
- + responseType?: 'json';
- withCredentials?: boolean;
- - }): Observable<string>;
- + }): Observable<T>;
- post(url: string, body: any | null, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- @@ -994,20 +934,20 @@
- reportProgress?: boolean;
- responseType: 'blob';
- withCredentials?: boolean;
- }): Observable<HttpEvent<Blob>>;
- - post<T>(url: string, body: any | null, options?: {
- + post(url: string, body: any | null, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe?: 'body';
- + observe: 'events';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType?: 'json';
- + responseType: 'text';
- withCredentials?: boolean;
- - }): Observable<T>;
- + }): Observable<HttpEvent<string>>;
- post(url: string, body: any | null, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- @@ -1018,20 +958,8 @@
- reportProgress?: boolean;
- responseType?: 'json';
- withCredentials?: boolean;
- }): Observable<HttpEvent<Object>>;
- - post<T>(url: string, body: any | null, options: {
- - headers?: HttpHeaders | {
- - [header: string]: string | string[];
- - };
- - observe: 'events';
- - params?: HttpParams | {
- - [param: string]: string | string[];
- - };
- - reportProgress?: boolean;
- - responseType?: 'json';
- - withCredentials?: boolean;
- - }): Observable<HttpEvent<T>>;
- post(url: string, body: any | null, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- @@ -1078,45 +1006,69 @@
- reportProgress?: boolean;
- responseType?: 'json';
- withCredentials?: boolean;
- }): Observable<HttpResponse<Object>>;
- - post<T>(url: string, body: any | null, options: {
- + post(url: string, body: any | null, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe: 'response';
- + observe?: 'body';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType?: 'json';
- + responseType: 'arraybuffer';
- withCredentials?: boolean;
- - }): Observable<HttpResponse<T>>;
- - put(url: string, body: any | null, options?: {
- + }): Observable<ArrayBuffer>;
- + post(url: string, body: any | null, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- observe?: 'body';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- + responseType: 'blob';
- + withCredentials?: boolean;
- + }): Observable<Blob>;
- + post(url: string, body: any | null, options: {
- + headers?: HttpHeaders | {
- + [header: string]: string | string[];
- + };
- + observe?: 'body';
- + params?: HttpParams | {
- + [param: string]: string | string[];
- + };
- + reportProgress?: boolean;
- + responseType: 'text';
- + withCredentials?: boolean;
- + }): Observable<string>;
- + post(url: string, body: any | null, options?: {
- + headers?: HttpHeaders | {
- + [header: string]: string | string[];
- + };
- + observe?: 'body';
- + params?: HttpParams | {
- + [param: string]: string | string[];
- + };
- + reportProgress?: boolean;
- responseType?: 'json';
- withCredentials?: boolean;
- }): Observable<Object>;
- - put<T>(url: string, body: any | null, options: {
- + post<T>(url: string, body: any | null, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe: 'response';
- + observe: 'events';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- responseType?: 'json';
- withCredentials?: boolean;
- - }): Observable<HttpResponse<T>>;
- - put(url: string, body: any | null, options: {
- + }): Observable<HttpEvent<T>>;
- + post<T>(url: string, body: any | null, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- observe: 'response';
- @@ -1125,53 +1077,57 @@
- };
- reportProgress?: boolean;
- responseType?: 'json';
- withCredentials?: boolean;
- - }): Observable<HttpResponse<Object>>;
- - put(url: string, body: any | null, options: {
- + }): Observable<HttpResponse<T>>;
- + post<T>(url: string, body: any | null, options?: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe: 'response';
- + observe?: 'body';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType: 'text';
- + responseType?: 'json';
- withCredentials?: boolean;
- - }): Observable<HttpResponse<string>>;
- + }): Observable<T>;
- put(url: string, body: any | null, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe: 'response';
- + observe: 'events';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType: 'blob';
- + responseType: 'arraybuffer';
- withCredentials?: boolean;
- - }): Observable<HttpResponse<Blob>>;
- + }): Observable<HttpEvent<ArrayBuffer>>;
- put(url: string, body: any | null, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe: 'response';
- + observe: 'events';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType: 'arraybuffer';
- + responseType: 'blob';
- withCredentials?: boolean;
- - }): Observable<HttpResponse<ArrayBuffer>>;
- - put<T>(url: string, body: any | null, options: {
- + }): Observable<HttpEvent<Blob>>;
- + put(url: string, body: any | null, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- observe: 'events';
- - responseType?: 'json';
- + params?: HttpParams | {
- + [param: string]: string | string[];
- + };
- + reportProgress?: boolean;
- + responseType: 'text';
- withCredentials?: boolean;
- - }): Observable<HttpEvent<T>>;
- + }): Observable<HttpEvent<string>>;
- put(url: string, body: any | null, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- @@ -1186,52 +1142,64 @@
- put(url: string, body: any | null, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe: 'events';
- + observe: 'response';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType: 'text';
- + responseType: 'arraybuffer';
- withCredentials?: boolean;
- - }): Observable<HttpEvent<string>>;
- + }): Observable<HttpResponse<ArrayBuffer>>;
- put(url: string, body: any | null, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe: 'events';
- + observe: 'response';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- responseType: 'blob';
- withCredentials?: boolean;
- - }): Observable<HttpEvent<Blob>>;
- + }): Observable<HttpResponse<Blob>>;
- put(url: string, body: any | null, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe: 'events';
- + observe: 'response';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType: 'arraybuffer';
- + responseType: 'text';
- withCredentials?: boolean;
- - }): Observable<HttpEvent<ArrayBuffer>>;
- + }): Observable<HttpResponse<string>>;
- put(url: string, body: any | null, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- + observe: 'response';
- + params?: HttpParams | {
- + [param: string]: string | string[];
- + };
- + reportProgress?: boolean;
- + responseType?: 'json';
- + withCredentials?: boolean;
- + }): Observable<HttpResponse<Object>>;
- + put(url: string, body: any | null, options: {
- + headers?: HttpHeaders | {
- + [header: string]: string | string[];
- + };
- observe?: 'body';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType: 'text';
- + responseType: 'arraybuffer';
- withCredentials?: boolean;
- - }): Observable<string>;
- + }): Observable<ArrayBuffer>;
- put(url: string, body: any | null, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- @@ -1251,12 +1219,12 @@
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType: 'arraybuffer';
- + responseType: 'text';
- withCredentials?: boolean;
- - }): Observable<ArrayBuffer>;
- - put<T>(url: string, body: any | null, options?: {
- + }): Observable<string>;
- + put(url: string, body: any | null, options?: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- observe?: 'body';
- @@ -1265,180 +1233,172 @@
- };
- reportProgress?: boolean;
- responseType?: 'json';
- withCredentials?: boolean;
- - }): Observable<T>;
- - request(method: string, url: string, options: {
- - body?: any;
- + }): Observable<Object>;
- + put<T>(url: string, body: any | null, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - reportProgress?: boolean;
- observe: 'events';
- - params?: HttpParams | {
- - [param: string]: string | string[];
- - };
- responseType?: 'json';
- withCredentials?: boolean;
- - }): Observable<HttpEvent<any>>;
- - request<R>(method: string, url: string, options?: {
- - body?: any;
- + }): Observable<HttpEvent<T>>;
- + put<T>(url: string, body: any | null, options: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe?: 'body';
- + observe: 'response';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- + reportProgress?: boolean;
- responseType?: 'json';
- - reportProgress?: boolean;
- withCredentials?: boolean;
- - }): Observable<R>;
- - request(method: string, url: string, options: {
- - body?: any;
- + }): Observable<HttpResponse<T>>;
- + put<T>(url: string, body: any | null, options?: {
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- observe?: 'body';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType: 'arraybuffer';
- + responseType?: 'json';
- withCredentials?: boolean;
- - }): Observable<ArrayBuffer>;
- + }): Observable<T>;
- request(method: string, url: string, options: {
- body?: any;
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe?: 'body';
- + observe: 'events';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- responseType: 'blob';
- withCredentials?: boolean;
- - }): Observable<Blob>;
- + }): Observable<HttpEvent<Blob>>;
- request(method: string, url: string, options: {
- body?: any;
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe?: 'body';
- + observe: 'events';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- responseType: 'text';
- withCredentials?: boolean;
- - }): Observable<string>;
- + }): Observable<HttpEvent<string>>;
- request(method: string, url: string, options: {
- body?: any;
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- + observe: 'response';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- - observe: 'events';
- reportProgress?: boolean;
- responseType: 'arraybuffer';
- withCredentials?: boolean;
- - }): Observable<HttpEvent<ArrayBuffer>>;
- + }): Observable<HttpResponse<ArrayBuffer>>;
- request(method: string, url: string, options: {
- body?: any;
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe: 'events';
- + observe: 'response';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- responseType: 'blob';
- withCredentials?: boolean;
- - }): Observable<HttpEvent<Blob>>;
- + }): Observable<HttpResponse<Blob>>;
- request(method: string, url: string, options: {
- body?: any;
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe: 'events';
- + observe: 'response';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- responseType: 'text';
- withCredentials?: boolean;
- - }): Observable<HttpEvent<string>>;
- - request<R>(req: HttpRequest<any>): Observable<HttpEvent<R>>;
- - request<R>(method: string, url: string, options: {
- + }): Observable<HttpResponse<string>>;
- + request(method: string, url: string, options: {
- body?: any;
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - reportProgress?: boolean;
- - observe: 'events';
- + observe?: 'body';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- - responseType?: 'json';
- + reportProgress?: boolean;
- + responseType: 'arraybuffer';
- withCredentials?: boolean;
- - }): Observable<HttpEvent<R>>;
- + }): Observable<ArrayBuffer>;
- request(method: string, url: string, options: {
- body?: any;
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe: 'response';
- + observe?: 'body';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType: 'arraybuffer';
- + responseType: 'blob';
- withCredentials?: boolean;
- - }): Observable<HttpResponse<ArrayBuffer>>;
- + }): Observable<Blob>;
- request(method: string, url: string, options: {
- body?: any;
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe: 'response';
- + observe?: 'body';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- reportProgress?: boolean;
- - responseType: 'blob';
- + responseType: 'text';
- withCredentials?: boolean;
- - }): Observable<HttpResponse<Blob>>;
- + }): Observable<string>;
- request(method: string, url: string, options: {
- body?: any;
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- - observe: 'response';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- + observe: 'events';
- reportProgress?: boolean;
- - responseType: 'text';
- + responseType: 'arraybuffer';
- withCredentials?: boolean;
- - }): Observable<HttpResponse<string>>;
- + }): Observable<HttpEvent<ArrayBuffer>>;
- request(method: string, url: string, options: {
- body?: any;
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- reportProgress?: boolean;
- - observe: 'response';
- + observe: 'events';
- params?: HttpParams | {
- [param: string]: string | string[];
- };
- responseType?: 'json';
- withCredentials?: boolean;
- - }): Observable<HttpResponse<Object>>;
- - request<R>(method: string, url: string, options: {
- + }): Observable<HttpEvent<any>>;
- + request(method: string, url: string, options: {
- body?: any;
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- };
- @@ -1448,9 +1408,9 @@
- [param: string]: string | string[];
- };
- responseType?: 'json';
- withCredentials?: boolean;
- - }): Observable<HttpResponse<R>>;
- + }): Observable<HttpResponse<Object>>;
- request(method: string, url: string, options?: {
- body?: any;
- headers?: HttpHeaders | {
- [header: string]: string | string[];
- @@ -1475,8 +1435,48 @@
- reportProgress?: boolean;
- responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
- withCredentials?: boolean;
- }): Observable<any>;
- + request<R>(method: string, url: string, options: {
- + body?: any;
- + headers?: HttpHeaders | {
- + [header: string]: string | string[];
- + };
- + reportProgress?: boolean;
- + observe: 'events';
- + params?: HttpParams | {
- + [param: string]: string | string[];
- + };
- + responseType?: 'json';
- + withCredentials?: boolean;
- + }): Observable<HttpEvent<R>>;
- + request<R>(method: string, url: string, options: {
- + body?: any;
- + headers?: HttpHeaders | {
- + [header: string]: string | string[];
- + };
- + reportProgress?: boolean;
- + observe: 'response';
- + params?: HttpParams | {
- + [param: string]: string | string[];
- + };
- + responseType?: 'json';
- + withCredentials?: boolean;
- + }): Observable<HttpResponse<R>>;
- + request<R>(method: string, url: string, options?: {
- + body?: any;
- + headers?: HttpHeaders | {
- + [header: string]: string | string[];
- + };
- + observe?: 'body';
- + params?: HttpParams | {
- + [param: string]: string | string[];
- + };
- + responseType?: 'json';
- + reportProgress?: boolean;
- + withCredentials?: boolean;
- + }): Observable<R>;
- + request<R>(req: HttpRequest<any>): Observable<HttpEvent<R>>;
- }
- /** @stable */
- export declare class HttpClientJsonpModule {
- --- tools/public_api_guard/common/http/testing.d.ts Golden file
- +++ tools/public_api_guard/common/http/testing.d.ts Generated API
- @@ -3,16 +3,16 @@
- }
- /** @stable */
- export declare abstract class HttpTestingController {
- + abstract expectNone(match: string | RequestMatch | ((req: HttpRequest<any>) => boolean), description?: string): void;
- + abstract expectNone(matchFn: ((req: HttpRequest<any>) => boolean), description?: string): void;
- + abstract expectNone(params: RequestMatch, description?: string): void;
- abstract expectNone(url: string, description?: string): void;
- - abstract expectNone(params: RequestMatch, description?: string): void;
- - abstract expectNone(matchFn: ((req: HttpRequest<any>) => boolean), description?: string): void;
- - abstract expectNone(match: string | RequestMatch | ((req: HttpRequest<any>) => boolean), description?: string): void;
- + abstract expectOne(match: string | RequestMatch | ((req: HttpRequest<any>) => boolean), description?: string): TestRequest;
- + abstract expectOne(matchFn: ((req: HttpRequest<any>) => boolean), description?: string): TestRequest;
- + abstract expectOne(params: RequestMatch, description?: string): TestRequest;
- abstract expectOne(url: string, description?: string): TestRequest;
- - abstract expectOne(params: RequestMatch, description?: string): TestRequest;
- - abstract expectOne(matchFn: ((req: HttpRequest<any>) => boolean), description?: string): TestRequest;
- - abstract expectOne(match: string | RequestMatch | ((req: HttpRequest<any>) => boolean), description?: string): TestRequest;
- abstract match(match: string | RequestMatch | ((req: HttpRequest<any>) => boolean)): TestRequest[];
- abstract verify(opts?: {
- ignoreCancelled?: boolean;
- }): void;
- --- tools/public_api_guard/core/core.d.ts Golden file
- +++ tools/public_api_guard/core/core.d.ts Generated API
- @@ -289,17 +289,17 @@
- attributes: {
- [key: string]: string | null;
- };
- childNodes: DebugNode[];
- - readonly children: DebugElement[];
- classes: {
- [key: string]: boolean;
- };
- name: string;
- nativeElement: any;
- properties: {
- [key: string]: any;
- };
- + readonly children: DebugElement[];
- styles: {
- [key: string]: string | null;
- };
- constructor(nativeNode: any, parent: any, _debugContext: DebugContext);
- @@ -314,14 +314,14 @@
- }
- /** @experimental */
- export declare class DebugNode {
- + listeners: EventListener[];
- + nativeNode: any;
- + parent: DebugElement | null;
- readonly componentInstance: any;
- readonly context: any;
- readonly injector: Injector;
- - listeners: EventListener[];
- - nativeNode: any;
- - parent: DebugElement | null;
- readonly providerTokens: any[];
- readonly references: {
- [key: string]: any;
- };
- @@ -498,18 +498,18 @@
- }
- /** @stable */
- export declare abstract class Injector {
- + /** @deprecated */ abstract get(token: any, notFoundValue?: any): any;
- abstract get<T>(token: Type<T> | InjectionToken<T>, notFoundValue?: T, flags?: InjectFlags): T;
- - /** @deprecated */ abstract get(token: any, notFoundValue?: any): any;
- static NULL: Injector;
- static THROW_IF_NOT_FOUND: Object;
- - /** @deprecated */ static create(providers: StaticProvider[], parent?: Injector): Injector;
- static create(options: {
- providers: StaticProvider[];
- parent?: Injector;
- name?: string;
- }): Injector;
- + /** @deprecated */ static create(providers: StaticProvider[], parent?: Injector): Injector;
- }
- /** @stable */
- export declare const Input: InputDecorator;
- @@ -782,10 +782,10 @@
- }
- /** @deprecated */
- export declare class ReflectiveKey {
- + id: number;
- readonly displayName: string;
- - id: number;
- token: Object;
- constructor(token: Object, id: number);
- static readonly numberOfKeys: number;
- static get(token: Object): ReflectiveKey;
- @@ -826,12 +826,12 @@
- }
- /** @experimental */
- export declare abstract class Renderer2 {
- + destroyNode: ((node: any) => void) | null;
- readonly abstract data: {
- [key: string]: any;
- };
- - destroyNode: ((node: any) => void) | null;
- abstract addClass(el: any, name: string): void;
- abstract appendChild(parent: any, newChild: any): void;
- abstract createComment(value: string): any;
- abstract createElement(name: string, namespace?: string | null): any;
- --- tools/public_api_guard/core/testing.d.ts Golden file
- +++ tools/public_api_guard/core/testing.d.ts Generated API
- @@ -76,15 +76,15 @@
- useJit?: boolean;
- }): void;
- configureTestingModule(moduleDef: TestModuleMetadata): void;
- createComponent<T>(component: Type<T>): ComponentFixture<T>;
- - deprecatedOverrideProvider(token: any, provider: {
- - useValue: any;
- - }): void;
- /** @deprecated */ deprecatedOverrideProvider(token: any, provider: {
- useFactory: Function;
- deps: any[];
- }): void;
- + deprecatedOverrideProvider(token: any, provider: {
- + useValue: any;
- + }): void;
- execute(tokens: any[], fn: Function, context?: any): any;
- get(token: any, notFoundValue?: any): any;
- /** @experimental */ initTestEnvironment(ngModule: Type<any> | Type<any>[], platform: PlatformRef, aotSummaries?: () => any[]): void;
- overrideComponent(component: Type<any>, override: MetadataOverride<Component>): void;
- @@ -107,15 +107,15 @@
- useJit?: boolean;
- }): typeof TestBed;
- static configureTestingModule(moduleDef: TestModuleMetadata): typeof TestBed;
- static createComponent<T>(component: Type<T>): ComponentFixture<T>;
- - static deprecatedOverrideProvider(token: any, provider: {
- - useValue: any;
- - }): void;
- /** @deprecated */ static deprecatedOverrideProvider(token: any, provider: {
- useFactory: Function;
- deps: any[];
- }): void;
- + static deprecatedOverrideProvider(token: any, provider: {
- + useValue: any;
- + }): void;
- static get(token: any, notFoundValue?: any): any;
- /** @experimental */ static initTestEnvironment(ngModule: Type<any> | Type<any>[], platform: PlatformRef, aotSummaries?: () => any[]): TestBed;
- static overrideComponent(component: Type<any>, override: MetadataOverride<Component>): typeof TestBed;
- static overrideDirective(directive: Type<any>, override: MetadataOverride<Directive>): typeof TestBed;
- --- tools/public_api_guard/forms/forms.d.ts Golden file
- +++ tools/public_api_guard/forms/forms.d.ts Generated API
- @@ -15,12 +15,15 @@
- readonly touched: boolean;
- readonly untouched: boolean;
- readonly updateOn: FormHooks;
- readonly valid: boolean;
- - validator: ValidatorFn | null;
- readonly value: any;
- readonly valueChanges: Observable<any>;
- + validator: ValidatorFn | null;
- constructor(validator: ValidatorFn | null, asyncValidator: AsyncValidatorFn | null);
- + abstract patchValue(value: any, options?: Object): void;
- + abstract reset(value?: any, options?: Object): void;
- + abstract setValue(value: any, options?: Object): void;
- clearAsyncValidators(): void;
- clearValidators(): void;
- disable(opts?: {
- onlySelf?: boolean;
- @@ -47,17 +50,14 @@
- }): void;
- markAsUntouched(opts?: {
- onlySelf?: boolean;
- }): void;
- - abstract patchValue(value: any, options?: Object): void;
- - abstract reset(value?: any, options?: Object): void;
- setAsyncValidators(newValidator: AsyncValidatorFn | AsyncValidatorFn[] | null): void;
- setErrors(errors: ValidationErrors | null, opts?: {
- emitEvent?: boolean;
- }): void;
- setParent(parent: FormGroup | FormArray): void;
- setValidators(newValidator: ValidatorFn | ValidatorFn[] | null): void;
- - abstract setValue(value: any, options?: Object): void;
- updateValueAndValidity(opts?: {
- onlySelf?: boolean;
- emitEvent?: boolean;
- }): void;
- @@ -134,10 +134,10 @@
- export declare const COMPOSITION_BUFFER_MODE: InjectionToken<boolean>;
- /** @stable */
- export declare abstract class ControlContainer extends AbstractControlDirective {
- + name: string;
- readonly formDirective: Form | null;
- - name: string;
- readonly path: string[] | null;
- }
- /** @stable */
- @@ -203,12 +203,12 @@
- }
- /** @stable */
- export declare class FormArrayName extends ControlContainer implements OnInit, OnDestroy {
- + name: string;
- readonly asyncValidator: AsyncValidatorFn | null;
- readonly control: FormArray;
- readonly formDirective: FormGroupDirective | null;
- - name: string;
- readonly path: string[];
- readonly validator: ValidatorFn | null;
- constructor(parent: ControlContainer, validators: any[], asyncValidators: any[]);
- ngOnDestroy(): void;
- @@ -250,33 +250,33 @@
- }
- /** @stable */
- export declare class FormControlDirective extends NgControl implements OnChanges {
- - readonly asyncValidator: AsyncValidatorFn | null;
- - readonly control: FormControl;
- form: FormControl;
- isDisabled: boolean;
- model: any;
- + readonly asyncValidator: AsyncValidatorFn | null;
- + readonly control: FormControl;
- readonly path: string[];
- + readonly validator: ValidatorFn | null;
- update: EventEmitter<{}>;
- - readonly validator: ValidatorFn | null;
- viewModel: any;
- constructor(validators: Array<Validator | ValidatorFn>, asyncValidators: Array<AsyncValidator | AsyncValidatorFn>, valueAccessors: ControlValueAccessor[]);
- ngOnChanges(changes: SimpleChanges): void;
- viewToModelUpdate(newValue: any): void;
- }
- /** @stable */
- export declare class FormControlName extends NgControl implements OnChanges, OnDestroy {
- + isDisabled: boolean;
- + model: any;
- + name: string;
- readonly asyncValidator: AsyncValidatorFn;
- readonly control: FormControl;
- readonly formDirective: any;
- - isDisabled: boolean;
- - model: any;
- - name: string;
- readonly path: string[];
- + readonly validator: ValidatorFn | null;
- update: EventEmitter<{}>;
- - readonly validator: ValidatorFn | null;
- constructor(parent: ControlContainer, validators: Array<Validator | ValidatorFn>, asyncValidators: Array<AsyncValidator | AsyncValidatorFn>, valueAccessors: ControlValueAccessor[]);
- ngOnChanges(changes: SimpleChanges): void;
- ngOnDestroy(): void;
- viewToModelUpdate(newValue: any): void;
- @@ -315,13 +315,13 @@
- }
- /** @stable */
- export declare class FormGroupDirective extends ControlContainer implements Form, OnChanges {
- - readonly control: FormGroup;
- directives: FormControlName[];
- form: FormGroup;
- + ngSubmit: EventEmitter<{}>;
- + readonly control: FormGroup;
- readonly formDirective: Form;
- - ngSubmit: EventEmitter<{}>;
- readonly path: string[];
- readonly submitted: boolean;
- constructor(_validators: any[], _asyncValidators: any[]);
- addControl(dir: FormControlName): FormControl;
- @@ -376,10 +376,10 @@
- export declare const NG_VALUE_ACCESSOR: InjectionToken<ControlValueAccessor>;
- /** @stable */
- export declare abstract class NgControl extends AbstractControlDirective {
- + name: string | null;
- readonly asyncValidator: AsyncValidatorFn | null;
- - name: string | null;
- readonly validator: ValidatorFn | null;
- valueAccessor: ControlValueAccessor | null;
- abstract viewToModelUpdate(newValue: any): void;
- }
- @@ -395,18 +395,18 @@
- }
- /** @stable */
- export declare class NgForm extends ControlContainer implements Form, AfterViewInit {
- + form: FormGroup;
- + ngSubmit: EventEmitter<{}>;
- + options: {
- + updateOn?: FormHooks;
- + };
- readonly control: FormGroup;
- readonly controls: {
- [key: string]: AbstractControl;
- };
- - form: FormGroup;
- readonly formDirective: Form;
- - ngSubmit: EventEmitter<{}>;
- - options: {
- - updateOn?: FormHooks;
- - };
- readonly path: string[];
- readonly submitted: boolean;
- constructor(validators: any[], asyncValidators: any[]);
- addControl(dir: NgModel): void;
- @@ -426,22 +426,22 @@
- }
- /** @stable */
- export declare class NgModel extends NgControl implements OnChanges, OnDestroy {
- - readonly asyncValidator: AsyncValidatorFn | null;
- - readonly control: FormControl;
- - readonly formDirective: any;
- isDisabled: boolean;
- model: any;
- name: string;
- options: {
- name?: string;
- standalone?: boolean;
- updateOn?: FormHooks;
- };
- + readonly asyncValidator: AsyncValidatorFn | null;
- + readonly control: FormControl;
- + readonly formDirective: any;
- readonly path: string[];
- + readonly validator: ValidatorFn | null;
- update: EventEmitter<{}>;
- - readonly validator: ValidatorFn | null;
- viewModel: any;
- constructor(parent: ControlContainer, validators: Array<Validator | ValidatorFn>, asyncValidators: Array<AsyncValidator | AsyncValidatorFn>, valueAccessors: ControlValueAccessor[]);
- ngOnChanges(changes: SimpleChanges): void;
- ngOnDestroy(): void;
- --- tools/public_api_guard/platform-browser/platform-browser.d.ts Golden file
- +++ tools/public_api_guard/platform-browser/platform-browser.d.ts Generated API
- @@ -69,9 +69,9 @@
- buildHammer(element: HTMLElement): HammerInstance;
- }
- /** @experimental */
- -export declare function makeStateKey<T =
- +export declare function makeStateKey<T = void>(key: string): StateKey<T>;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement