-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(AjaxObservable): remove needles type param T from AjaxObservable.getJSON() #2069
refactor(AjaxObservable): remove needles type param T from AjaxObservable.getJSON() #2069
Conversation
Minor change: "BREAKING CHANGE" messages in commits need to be fully descriptive on their own, independent of the first part of the commit message because when the CHANGELOG is generated, they live in their own section. e.g. aa30af2 generates to https://github.com/ReactiveX/rxjs/blob/master/CHANGELOG.md#breaking-changes-1 So in this case, something like
Double check all your other PRs have good BREAKING CHANGE messages too please. Also--related refactors like these should prolly have been in a single PR to ease in the discussion and tracking. #2072 #2071 #2070 #2068 |
Okay, I'll update.
They are originated from the same issues, but I thought they still are different issue. cleaning up codes or changing signature which we may need some decisions. |
6a63f7b
to
af37b13
Compare
updated the commit message. |
@@ -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>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should probably just be T
... that's what we do everywhere else.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
af37b13
to
501bac4
Compare
501bac4
to
d864c9b
Compare
ac68378
to
6c221bc
Compare
….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.
6c221bc
to
d72d3c8
Compare
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description:
BREAKING CHANGE:
T
Related issue (if exists):