Skip to content
This repository was archived by the owner on Sep 10, 2022. It is now read-only.

export createEventHandlerWithConfig() and add documentation.#522

Merged
wuct merged 4 commits intoacdlite:masterfrom
acchou:master
Sep 21, 2017
Merged

export createEventHandlerWithConfig() and add documentation.#522
wuct merged 4 commits intoacdlite:masterfrom
acchou:master

Conversation

@acchou
Copy link
Copy Markdown
Contributor

@acchou acchou commented Sep 19, 2017

Address issue #520. I'll also suggest a separate PR for typescript types in the appropriate repo.

@codecov-io
Copy link
Copy Markdown

codecov-io commented Sep 20, 2017

Codecov Report

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

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #522   +/-   ##
=======================================
  Coverage   88.94%   88.94%           
=======================================
  Files          53       53           
  Lines         389      389           
=======================================
  Hits          346      346           
  Misses         43       43

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 3a4d7ec...b7e8cab. Read the comment docs.


Returns an object with properties `handler` and `stream`. `stream` is an observable sequence, and `handler` is a function that pushes new values onto the sequence. Useful for creating event handlers like `onClick`.

### `createEventHandlerWithConfig()`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you also add an entry to the TOC section?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It turns out that mapPropsStreamWithConfig is also missing from the TOC section.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added these functions to the TOC, and also componentFromStreamWithConfig().

docs/API.md Outdated
toESObservable<T>: ?(stream: Stream<T>) => Observable<T>,
}
) => (): {
handler: (value: T) => void
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

missing a , here.

 type description for `createEventHandlerWithConfig()`
@acchou
Copy link
Copy Markdown
Contributor Author

acchou commented Sep 20, 2017

I noticed that I had to npm install change-emitter and hoist-non-react-statics in order to push. Should these deps be in package.json?

@wuct
Copy link
Copy Markdown
Contributor

wuct commented Sep 21, 2017

@acchou Thanks! And yes, we can put them in devDependencies.

@wuct wuct merged commit 3e5bff8 into acdlite:master Sep 21, 2017
vvakame pushed a commit to DefinitelyTyped/DefinitelyTyped that referenced this pull request Sep 26, 2017
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.

3 participants