Revert "fix(http): Make ResponseOptionsArgs an interface (#14607)"
This reverts commit fbe4b76f2d
.
This commit is contained in:
parent
c2d5f203a5
commit
2ddd1c3ed2
|
@ -68,11 +68,9 @@ export interface RequestArgs extends RequestOptionsArgs { url: string; }
|
||||||
*
|
*
|
||||||
* @experimental
|
* @experimental
|
||||||
*/
|
*/
|
||||||
export interface ResponseOptionsArgs {
|
export type ResponseOptionsArgs = {
|
||||||
body?: string|Object|FormData|ArrayBuffer|Blob;
|
body?: string | Object | FormData | ArrayBuffer | Blob; status?: number; statusText?: string;
|
||||||
status?: number;
|
|
||||||
statusText?: string;
|
|
||||||
headers?: Headers;
|
headers?: Headers;
|
||||||
type?: ResponseType;
|
type?: ResponseType;
|
||||||
url?: string;
|
url?: string;
|
||||||
}
|
};
|
||||||
|
|
|
@ -197,14 +197,14 @@ export declare class ResponseOptions {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @experimental */
|
/** @experimental */
|
||||||
export interface ResponseOptionsArgs {
|
export declare type ResponseOptionsArgs = {
|
||||||
body?: string | Object | FormData | ArrayBuffer | Blob;
|
body?: string | Object | FormData | ArrayBuffer | Blob;
|
||||||
headers?: Headers;
|
|
||||||
status?: number;
|
status?: number;
|
||||||
statusText?: string;
|
statusText?: string;
|
||||||
|
headers?: Headers;
|
||||||
type?: ResponseType;
|
type?: ResponseType;
|
||||||
url?: string;
|
url?: string;
|
||||||
}
|
};
|
||||||
|
|
||||||
/** @experimental */
|
/** @experimental */
|
||||||
export declare enum ResponseType {
|
export declare enum ResponseType {
|
||||||
|
|
Loading…
Reference in New Issue