Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

docs(operators): add documentation for mergeMap #201

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sumitarora
Copy link
Collaborator

@sumitarora sumitarora commented Dec 13, 2017

Closes: #119

@codecov-io
Copy link

codecov-io commented Dec 13, 2017

Codecov Report

Merging #201 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #201   +/-   ##
=======================================
  Coverage   77.14%   77.14%           
=======================================
  Files          15       15           
  Lines         175      175           
  Branches        7        7           
=======================================
  Hits          135      135           
  Misses         40       40

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8824cbe...f89690d. Read the comment docs.

Copy link
Collaborator

@btroncone btroncone left a comment

Choose a reason for hiding this comment

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

Looks good, just a few small updates. 👍

'operatorType': 'transformation'
name: 'mergeMap',
operatorType: 'transformation',
signature: `public mergeMap(project: function(value: T, ?index: number): ObservableInput,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Think index may be messed up here ?index: number.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@btroncone I didn't get it.

Copy link
Collaborator

@btroncone btroncone Jan 10, 2018

Choose a reason for hiding this comment

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

@sumitarora I just meant the signature looks off mergeMap(project: function(value: T, ?index: number), should the ? be there?

{
type: 'Tip',
text:
'Maps each value to an Observable, then flattens all of these inner Observables using mergeAll.'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we add a link to mergeAll?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@rxjs-bot
Copy link

rxjs-bot commented Jan 9, 2018

Warnings
⚠️

❗ Big PR (1)

(1) : Pull Request size seems relatively large. If Pull Request contains multiple changes, split each into separate PR will helps faster, easier review.

Generated by 🚫 dangerJS

@ashwin-sureshkumar
Copy link
Collaborator

@btroncone - Could you please re-review this one ?

name:
'Map and flatten each letter to an Observable ticking every 1 second',
code: `
const letters = Rx.Observable.of('a', 'b', 'c');
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please update it to ES6 imports and pipeable operators?

'operatorType': 'transformation'
name: 'mergeMap',
operatorType: 'transformation',
signature: `public mergeMap(project: function(value: T, ?index: number): ObservableInput,
Copy link
Contributor

Choose a reason for hiding this comment

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

it should be index?: number if it is optional but as per source IDTS.

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.

6 participants