From 2ddd1c3ed2779bf65a70fbc01702031b453ee6bc Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Mon, 20 Feb 2017 19:48:53 -0800 Subject: [PATCH] Revert "fix(http): Make ResponseOptionsArgs an interface (#14607)" This reverts commit fbe4b76f2d34e062a67be307053d56e24f8d6240. --- modules/@angular/http/src/interfaces.ts | 8 +++----- tools/public_api_guard/http/index.d.ts | 6 +++--- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/modules/@angular/http/src/interfaces.ts b/modules/@angular/http/src/interfaces.ts index 112e71d14d..7155e8ee40 100644 --- a/modules/@angular/http/src/interfaces.ts +++ b/modules/@angular/http/src/interfaces.ts @@ -68,11 +68,9 @@ export interface RequestArgs extends RequestOptionsArgs { url: string; } * * @experimental */ -export interface ResponseOptionsArgs { - body?: string|Object|FormData|ArrayBuffer|Blob; - status?: number; - statusText?: string; +export type 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 2b0196aa37..061a804f05 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 interface ResponseOptionsArgs { +export declare type ResponseOptionsArgs = { body?: string | Object | FormData | ArrayBuffer | Blob; - headers?: Headers; status?: number; statusText?: string; + headers?: Headers; type?: ResponseType; url?: string; -} +}; /** @experimental */ export declare enum ResponseType {