Skip to content

Commit

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

BREAKING CHANGE:

You should only supply the return type.
  • Loading branch information
tetsuharuohzeki committed Oct 25, 2016
1 parent 260d335 commit 6a63f7b
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<R>(url: string, headers?: Object): Observable<R>;
}

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

0 comments on commit 6a63f7b

Please sign in to comment.