fix(http): Make ResponseOptionsArgs an interface (#14607)
closes #13708
This commit is contained in:
parent
874243279d
commit
fbe4b76f2d
@ -68,9 +68,11 @@ export interface RequestArgs extends RequestOptionsArgs { url: string; }
|
||||
*
|
||||
* @experimental
|
||||
*/
|
||||
export type ResponseOptionsArgs = {
|
||||
body?: string | Object | FormData | ArrayBuffer | Blob; status?: number; statusText?: string;
|
||||
export interface ResponseOptionsArgs {
|
||||
body?: string|Object|FormData|ArrayBuffer|Blob;
|
||||
status?: number;
|
||||
statusText?: string;
|
||||
headers?: Headers;
|
||||
type?: ResponseType;
|
||||
url?: string;
|
||||
};
|
||||
}
|
||||
|
6
tools/public_api_guard/http/index.d.ts
vendored
6
tools/public_api_guard/http/index.d.ts
vendored
@ -197,14 +197,14 @@ export declare class ResponseOptions {
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare type ResponseOptionsArgs = {
|
||||
export interface ResponseOptionsArgs {
|
||||
body?: string | Object | FormData | ArrayBuffer | Blob;
|
||||
headers?: Headers;
|
||||
status?: number;
|
||||
statusText?: string;
|
||||
headers?: Headers;
|
||||
type?: ResponseType;
|
||||
url?: string;
|
||||
};
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare enum ResponseType {
|
||||
|
Loading…
x
Reference in New Issue
Block a user