Skip to content

Commit

Permalink
fix(AjaxObservable): remove needless type param R from AjaxObservable…
Browse files Browse the repository at this point in the history
….getJSON() (#2069)

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 authored and benlesh committed Nov 4, 2016
1 parent a3823d2 commit 0c3d4a4
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 0c3d4a4

Please sign in to comment.