X Tutup
Skip to content

Commit 3d6e3c2

Browse files
committed
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
1 parent 0366f31 commit 3d6e3c2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

modules/angular2/src/http/interfaces.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ export class Connection {
3333
* Interface for options to construct a Request, based on
3434
* [RequestInit](https://fetch.spec.whatwg.org/#requestinit) from the Fetch spec.
3535
*/
36-
// TODO(jeffbcross): Change to type declaration when #3828 is fixed
37-
// https://github.com/angular/angular/issues/3828
38-
export interface RequestOptionsArgs {
36+
export type RequestOptionsArgs = {
3937
url?: string;
4038
method?: RequestMethods;
4139
search?: string | URLSearchParams;
@@ -48,7 +46,7 @@ export interface RequestOptionsArgs {
4846
* Interface for options to construct a Response, based on
4947
* [ResponseInit](https://fetch.spec.whatwg.org/#responseinit) from the Fetch spec.
5048
*/
51-
export interface ResponseOptionsArgs {
49+
export type ResponseOptionsArgs = {
5250
// TODO: Support Blob, ArrayBuffer, JSON
5351
body?: string | Object | FormData;
5452
status?: number;

0 commit comments

Comments
 (0)
X Tutup