From fbe4b76f2d34e062a67be307053d56e24f8d6240 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Mon, 20 Feb 2017 17:55:03 -0800 Subject: [PATCH] fix(http): Make ResponseOptionsArgs an interface (#14607) closes #13708 --- modules/@angular/http/src/interfaces.ts | 8 +++++--- tools/public_api_guard/http/index.d.ts | 6 +++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/modules/@angular/http/src/interfaces.ts b/modules/@angular/http/src/interfaces.ts index 7155e8ee40..112e71d14d 100644 --- a/modules/@angular/http/src/interfaces.ts +++ b/modules/@angular/http/src/interfaces.ts @@ -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; -}; +} diff --git a/tools/public_api_guard/http/index.d.ts b/tools/public_api_guard/http/index.d.ts index 061a804f05..2b0196aa37 100644 --- a/tools/public_api_guard/http/index.d.ts +++ b/tools/public_api_guard/http/index.d.ts @@ -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 {