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(express-type): changed TApp type #500

Merged
merged 3 commits into from
Oct 24, 2020

Conversation

natoehv
Copy link
Contributor

@natoehv natoehv commented Oct 23, 2020

Summary

When we use a createMiddleware TS throw an error of wrong object (Express application).

Description

Type 'Application' is missing the following properties from type 'TApp': setTimeout, maxHeadersCount, timeout, headersTimeout, and 9 more.ts(2740)

solves #499

@changeset-bot
Copy link

changeset-bot bot commented Oct 23, 2020

🦋 Changeset detected

Latest commit: 5869bfa

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@promster/express Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov-io
Copy link

codecov-io commented Oct 23, 2020

Codecov Report

Merging #500 into main will decrease coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #500      +/-   ##
==========================================
- Coverage   91.17%   91.14%   -0.03%     
==========================================
  Files          12       12              
  Lines         306      305       -1     
  Branches       80       80              
==========================================
- Hits          279      278       -1     
  Misses         18       18              
  Partials        9        9              
Impacted Files Coverage Δ
packages/express/modules/middleware/middleware.ts 89.74% <ø> (-0.26%) ⬇️

Copy link
Owner

@tdeekens tdeekens left a comment

Choose a reason for hiding this comment

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

Ah nice. Can you add a changeset? Cheers.

@natoehv
Copy link
Contributor Author

natoehv commented Oct 23, 2020

done!

Copy link
Owner

@tdeekens tdeekens left a comment

Choose a reason for hiding this comment

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

Is it really major and breaking or rather a fix changes?

@tdeekens tdeekens merged commit a0dc407 into tdeekens:main Oct 24, 2020
@tdeekens tdeekens mentioned this pull request Oct 24, 2020
@natoehv natoehv deleted the fix/express-type branch October 26, 2020 11:01
@natoehv
Copy link
Contributor Author

natoehv commented Oct 26, 2020

Sorry!, I was not available on the weekend 👎 , thanks!

natoehv added a commit to natoehv/promster that referenced this pull request Oct 26, 2020
* fix(express-type): changed TApp type

* chore(express-type): added four-pigs-relax.md

* Update four-pigs-relax.md

Co-authored-by: Renato Hormazabal <[email protected]>
Co-authored-by: Tobias Deekens <[email protected]>
@tdeekens
Copy link
Owner

The fix worked for you?

@natoehv
Copy link
Contributor Author

natoehv commented Oct 26, 2020

yes!, no errors now, thank you very much!

image

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