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

chore(typings): added type signatures for concat/exhaust/merge/switch #1351

Merged
merged 1 commit into from
Feb 24, 2016

Conversation

david-driscoll
Copy link
Member

also adds signatures for the "All", "Map", and "MapTo" variants.

private ish: Observable<R> | Promise<R>,
private resultSelector?: (outerValue: T, innerValue: R, outerIndex: number, innerIndex: number) => R2,
constructor(destination: Subscriber<R>,
private ish: Observable<I> | Promise<I>,
Copy link
Member

Choose a reason for hiding this comment

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

can this be ObservableOrPromise<T>?

Copy link
Member Author

Choose a reason for hiding this comment

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

it can, updated.

@kwonoj
Copy link
Member

kwonoj commented Feb 24, 2016

Change looks good to me. Will try to check in after #1352.

@david-driscoll
Copy link
Member Author

this may need a rebase, so I'll keep an eye on on #1352, and get that done asap

@kwonoj kwonoj mentioned this pull request Feb 24, 2016
@kwonoj
Copy link
Member

kwonoj commented Feb 24, 2016

@david-driscoll seems it requires rebase as you've expected. :) In general I think change's ok, cc @masaeedu for visibility just in case.

resultSelector?: (outerValue: T, innerValue: R, outerIndex: number, innerIndex: number) => R2 | number,
concurrent: number = Number.POSITIVE_INFINITY): Observable<R2> {
export function mergeMap<T, I, R>(project: (value: T, index: number) => ObservableInput<I>,
resultSelector?: (outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R | number,
Copy link
Contributor

Choose a reason for hiding this comment

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

Grouping issue again; I think this should be ((outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R) | number, which makes mergeMap assignable to its signature.

@masaeedu
Copy link
Contributor

@kwonoj Similar non-blocking quibbles as the last one. LGTM.

@kwonoj
Copy link
Member

kwonoj commented Feb 24, 2016

Cool, let me kick off this once it's rebased.

@david-driscoll
Copy link
Member Author

@kwonoj @masaeedu rebased.

@kwonoj
Copy link
Member

kwonoj commented Feb 24, 2016

@david-driscoll seems there was some failure with type definition update?

also adds signatures for the "All", "Map", and "MapTo" variants.
@david-driscoll
Copy link
Member Author

Yeah, missed that. Updated now.

@kwonoj kwonoj merged commit 1933774 into ReactiveX:master Feb 24, 2016
@kwonoj
Copy link
Member

kwonoj commented Feb 24, 2016

Merged with 1933774, thanks @david-driscoll !

@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

3 participants