fix(http): Make ResponseOptionsArgs an interface (#14607) (#14623)

closes #13708
This commit is contained in:
Victor Berchet 2017-03-15 15:28:52 -07:00 committed by Chuck Jazdzewski
parent 029d0f25e5
commit f1b33ab7b1
2 changed files with 8 additions and 6 deletions

View File

@ -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;
};
}

View File

@ -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 {