Skip to content
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

docs(operators): fix ESDoc build to put operators under Observable class #1376

Closed

Conversation

staltz
Copy link
Member

@staltz staltz commented Feb 22, 2016

This moves operators from being top-level functions (they are not, because they are
added/monkey-patched to the Observable type) to being methods under the Observable class.

To see this page live, open http://rxjs5-esdoc-fix-reference-structure.surge.sh/

screen shot 2016-02-22 at 21 10 41

@masaeedu
Copy link
Contributor

Might want to hold off on this until @david-driscoll's type signature changes are merged, then generate the doc from those interfaces. Those interfaces provide specific, well typed overloads for each operator, which means more details in the docs.

@kwonoj
Copy link
Member

kwonoj commented Feb 22, 2016

Think PR #1351, #1352 both can be checked in prior to this PR since review's nearly completed. Obviously have to ask pain of rebase on @staltz 's though.. :(

@staltz
Copy link
Member Author

staltz commented Feb 22, 2016

rebase: that's ok :)

@staltz staltz force-pushed the esdoc-fix-reference-structure branch 2 times, most recently from 05b8024 to 7251390 Compare February 23, 2016 08:18
@staltz staltz mentioned this pull request Feb 23, 2016
This moves operators from being top-level functions (they are not, because they are
added/monkey-patched to the Observable type) to being methods under the Observable class.
@staltz staltz force-pushed the esdoc-fix-reference-structure branch from 7251390 to ad88f2e Compare February 29, 2016 08:31
@staltz
Copy link
Member Author

staltz commented Feb 29, 2016

Rebased this with the latest changes from #1351 and #1352.

* @param {function} [project] an optional function to project the values from the combined recent values into a new value for emission.
* @returns {Observable} an observable of other projected values from the most recent values from each observable, or an array of each of
* the most recent values from each observable.
*/
/* tslint:disable:max-line-length */
export function combineLatestStatic<T>(v1: ObservableInput<T>, scheduler?: Scheduler): Observable<[T]>;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does esdoc shows these overloads? (when n-param definitions are available via operator)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought that was not reflecting latest changes (since it shows just one signatures). :)

@kwonoj
Copy link
Member

kwonoj commented Feb 29, 2016

Change looks good to me, I'll check in this around late today if there isn't other suggestions.

@kwonoj
Copy link
Member

kwonoj commented Mar 3, 2016

Merged with 2ef4682, thanks @staltz

@kwonoj kwonoj closed this Mar 3, 2016
@staltz staltz deleted the esdoc-fix-reference-structure branch March 3, 2016 08:08
@lock
Copy link

lock bot commented Jun 7, 2018

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.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants