From 3d6e3c25510d7b72ca91b2046c3b2b4bbabbf091 Mon Sep 17 00:00:00 2001 From: Jeff Cross Date: Sun, 6 Sep 2015 22:14:19 -0700 Subject: [PATCH] fix(http): change http interfaces to types Types were previously not handled correctly by the type definition generation process, so a couple of things in http had to be changed to interfaces. This issue has been fixed, so now they're types again. Closes #4024 --- modules/angular2/src/http/interfaces.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/angular2/src/http/interfaces.ts b/modules/angular2/src/http/interfaces.ts index aa3173d1da..99e40cf8e9 100644 --- a/modules/angular2/src/http/interfaces.ts +++ b/modules/angular2/src/http/interfaces.ts @@ -33,9 +33,7 @@ export class Connection { * Interface for options to construct a Request, based on * [RequestInit](https://fetch.spec.whatwg.org/#requestinit) from the Fetch spec. */ -// TODO(jeffbcross): Change to type declaration when #3828 is fixed -// https://github.com/angular/angular/issues/3828 -export interface RequestOptionsArgs { +export type RequestOptionsArgs = { url?: string; method?: RequestMethods; search?: string | URLSearchParams; @@ -48,7 +46,7 @@ export interface RequestOptionsArgs { * Interface for options to construct a Response, based on * [ResponseInit](https://fetch.spec.whatwg.org/#responseinit) from the Fetch spec. */ -export interface ResponseOptionsArgs { +export type ResponseOptionsArgs = { // TODO: Support Blob, ArrayBuffer, JSON body?: string | Object | FormData; status?: number;