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

fix: correctly expose route and middleware types #10

Merged
merged 6 commits into from
Nov 23, 2020

Conversation

danielroe
Copy link
Member

@danielroe danielroe commented Nov 22, 2020

  • allows arrays of routes/handlers to be passed in (types)
  • this exposes Middleware (Handler with next()) rather than just Handler if promisify has not been set to false (types)

@codecov-io
Copy link

codecov-io commented Nov 22, 2020

Codecov Report

Merging #10 (3b89ac7) into main (091481d) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##              main       #10   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            5         5           
  Lines          112       112           
  Branches        29        29           
=========================================
  Hits           112       112           

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 091481d...3b89ac7. Read the comment docs.

src/promisify.ts Outdated Show resolved Hide resolved
@pi0 pi0 merged commit bb6cd4c into main Nov 23, 2020
@pi0 pi0 deleted the types-middleware-and-arrays branch November 23, 2020 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants