Skip to content
This repository has been archived by the owner on Jan 16, 2022. It is now read-only.

Fixed type inference for AppContext #188

Merged
merged 2 commits into from Oct 12, 2019

Conversation

tmkn
Copy link
Contributor

@tmkn tmkn commented Oct 12, 2019

This PR removes a tsignore and fixes the underlying complaint by providing better type inference for AppContext.

AppContext.Consumer can infer the context naturally, however due to the way AppContext was typed this was not the case and it complained in some places without tsignore. This PR fixes those complaints.

@codecov
Copy link

codecov bot commented Oct 12, 2019

Codecov Report

Merging #188 into master will increase coverage by 0.01%.
The diff coverage is 80%.

@@            Coverage Diff             @@
##           master     #188      +/-   ##
==========================================
+ Coverage   88.75%   88.76%   +0.01%     
==========================================
  Files         113      113              
  Lines         916      917       +1     
  Branches      162      163       +1     
==========================================
+ Hits          813      814       +1     
  Misses         89       89              
  Partials       14       14
Impacted Files Coverage Δ
src/pages/home/Home.tsx 100% <ø> (ø) ⬆️
src/router.tsx 82.35% <0%> (ø) ⬆️
src/App/App.tsx 94.33% <100%> (+0.1%) ⬆️

Copy link
Member

@juanpicado juanpicado left a comment

Choose a reason for hiding this comment

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

🚀 👏

@juanpicado juanpicado merged commit d2c1130 into verdaccio:master Oct 12, 2019
@juanpicado
Copy link
Member

Thanks !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants