Skip to content

Commit

Permalink
fix(http): change type declarations to interfaces and export EventEmi…
Browse files Browse the repository at this point in the history
…tter
  • Loading branch information
jeffbcross committed Aug 25, 2015
1 parent 38a5a2a commit 10437ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions modules/angular2/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ export {
RequestCredentialsOpts,
RequestCacheOpts,
RequestModesOpts
} from './src/enums';
export {URLSearchParams} from './src/url_search_params';
} from './src/http/enums';
export {URLSearchParams} from './src/http/url_search_params';
export {EventEmitter, Observable} from './src/core/facade/async';

/**
* Provides a basic set of injectables to use the {@link Http} service in any application.
Expand Down
6 changes: 4 additions & 2 deletions modules/angular2/src/http/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ export class Connection {
* Interface for options to construct a Request, based on
* [RequestInit](https://fetch.spec.whatwg.org/#requestinit) from the Fetch spec.
*/
export type RequestOptionsArgs = {
// TODO(jeffbcross): Change to type declaration when #3828 is fixed
// https://github.com/angular/angular/issues/3828
export interface RequestOptionsArgs {
url?: string;
method?: RequestMethods;
search?: string | URLSearchParams;
Expand All @@ -58,7 +60,7 @@ export type RequestOptionsArgs = {
* Interface for options to construct a Response, based on
* [ResponseInit](https://fetch.spec.whatwg.org/#responseinit) from the Fetch spec.
*/
export type ResponseOptionsArgs = {
export interface ResponseOptionsArgs {
// TODO: Support Blob, ArrayBuffer, JSON
body?: string | Object | FormData;
status?: number;
Expand Down

0 comments on commit 10437ab

Please sign in to comment.