Skip to content

Commit

Permalink
fix(http): Make ResponseOptionsArgs an interface (angular#14607)
Browse files Browse the repository at this point in the history
  • Loading branch information
vicb authored Feb 21, 2017
1 parent 8742432 commit fbe4b76
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions modules/@angular/http/src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
}
6 changes: 3 additions & 3 deletions tools/public_api_guard/http/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit fbe4b76

Please sign in to comment.