Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Conversation

@jooskim
Copy link
Contributor

@jooskim jooskim commented Dec 4, 2021

This PR improves type inference for various bus API methods such as listenStream() and requestOnce() etc.

Signed-off-by: Josh Kim [email protected]

@jooskim jooskim force-pushed the topic/kjosh/type-inference-improvement branch from 85984e3 to f023ad2 Compare December 4, 2021 02:44
@codecov-commenter
Copy link

codecov-commenter commented Dec 4, 2021

Codecov Report

Merging #62 (f023ad2) into master (a8049de) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #62   +/-   ##
=======================================
  Coverage   93.67%   93.67%           
=======================================
  Files          62       62           
  Lines        3715     3715           
  Branches      441      441           
=======================================
  Hits         3480     3480           
  Misses        116      116           
  Partials      119      119           
Flag Coverage Δ
unittests 93.67% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/bus.api.ts 100.00% <100.00%> (ø)
src/bus/bus.lowlevel.ts 97.01% <100.00%> (ø)
src/bus/bus.ts 97.05% <100.00%> (ø)

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 a8049de...f023ad2. Read the comment docs.

@jooskim jooskim changed the title Improve inference for bus API methods Improve type inference for bus API methods Dec 4, 2021
Copy link
Contributor

@daveshanley daveshanley 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 to me, makes things more flexible. Nice work!

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