Skip to content

Commit

Permalink
refactor(AjaxObservable): remove needles type param R from AjaxObserv…
Browse files Browse the repository at this point in the history
…able.getJSON()

BREAKING CHANGE - Observable.ajax.getJSON() now only supports a single type parameter,
`getJSON<T>(url: string, headers?: Object): Observable<T>`.
The extra type parameter it accepted previously was superfluous.
  • Loading branch information
tetsuharuohzeki committed Oct 26, 2016
1 parent 260d335 commit 501bac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/observable/dom/AjaxObservable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export interface AjaxCreationMethod {
post(url: string, body?: any, headers?: Object): Observable<AjaxResponse>;
put(url: string, body?: any, headers?: Object): Observable<AjaxResponse>;
delete(url: string, headers?: Object): Observable<AjaxResponse>;
getJSON<T, R>(url: string, headers?: Object): Observable<R>;
getJSON<T>(url: string, headers?: Object): Observable<T>;
}

export function ajaxGet(url: string, headers: Object = null) {
Expand Down

0 comments on commit 501bac4

Please sign in to comment.