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

Improved type inference and p.pipe(f) support #3

Merged
merged 4 commits into from
Aug 23, 2019
Merged

Improved type inference and p.pipe(f) support #3

merged 4 commits into from
Aug 23, 2019

Conversation

orlowdev
Copy link
Owner

No description provided.

Sergei Orlov added 3 commits August 23, 2019 23:40
Add type inference for Promise results
Add type inference for multiple functions within pipelines
Pipeline.of now accepts only one function and other ones are passed to .pipe on the instance

BREAKING CHANGE: Pipeline.of now only accepts one function instead of many. If you want to instantiate a Pipeline with multiple functions, go with Pipeline.from
BREAKING CHANGE: Pipeline now exposes three generic types instead of one
Previously, if middleware returned nullable value, result of previous computation was passed to the next middleware instead. Now, pipelines are agnostic to user output as the behaviour appeared to be quite ambiguous.

BREAKING CHANGE: Pipelines no longer provide results of previous computation if current middleware returned nullable value
@codecov
Copy link

codecov bot commented Aug 23, 2019

Codecov Report

Merging #3 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master     #3   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           8      8           
  Lines         100    113   +13     
  Branches       19     16    -3     
=====================================
+ Hits          100    113   +13
Impacted Files Coverage Δ
src/base-pipeline.ts 100% <100%> (ø) ⬆️
src/pipeline.ts 100% <100%> (ø) ⬆️
src/sync-pipeline.ts 100% <100%> (ø) ⬆️
src/intermediate-pipeline.ts 100% <100%> (ø) ⬆️

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 bd7acfe...40e663a. Read the comment docs.

@orlowdev orlowdev self-assigned this Aug 23, 2019
@orlowdev orlowdev merged commit c93a240 into master Aug 23, 2019
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.

1 participant