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

Improved Typings#174

Merged
juanpicado merged 2 commits intoverdaccio:masterfrom
tmkn:chore/improved_typings
Oct 10, 2019
Merged

Improved Typings#174
juanpicado merged 2 commits intoverdaccio:masterfrom
tmkn:chore/improved_typings

Conversation

@tmkn
Copy link
Copy Markdown
Contributor

@tmkn tmkn commented Oct 10, 2019

This PR adds explicit type information to places that have been implicitly any.
No actual code changes, just improved typings in various places.

Compiling with noImplicityAny is now down to double digits 🎉

"scripts": {
"type-check": "tsc --noEmit --pretty",
"type-check:watch": "npm run type-check -- --watch",
"type-check-strict:watch": "tsc --project ./tsconfig.strict.json --noEmit --pretty --watch",
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

added a strict configuration to be able to quickly compare the compile output between this and the standard configuration

@codecov
Copy link
Copy Markdown

codecov bot commented Oct 10, 2019

Codecov Report

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

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #174   +/-   ##
=======================================
  Coverage   85.06%   85.06%           
=======================================
  Files         107      107           
  Lines         924      924           
  Branches      144      160   +16     
=======================================
  Hits          786      786           
+ Misses        125      124    -1     
- Partials       13       14    +1
Impacted Files Coverage Δ
src/utils/calls.ts 75% <ø> (ø) ⬆️
src/components/Login/Login.tsx 91.3% <ø> (ø) ⬆️
src/utils/package.ts 91.66% <ø> (ø) ⬆️
src/components/AvatarTooltip/AvatarTooltip.tsx 83.33% <ø> (ø) ⬆️
src/utils/url.ts 20% <ø> (ø) ⬆️
src/App/AppError.tsx 75% <ø> (ø) ⬆️
src/pages/Version/Version.tsx 87.5% <ø> (ø) ⬆️
src/components/Engines/Engines.tsx 100% <100%> (ø) ⬆️
src/components/CopyToClipBoard/CopyToClipBoard.tsx 100% <100%> (ø) ⬆️
src/App/App.tsx 94.23% <100%> (ø) ⬆️
... and 1 more

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 68b7171...c1749da. Read the comment docs.

@juanpicado
Copy link
Copy Markdown
Member

download

@juanpicado juanpicado self-requested a review October 10, 2019 20:04
{
"extends": "./tsconfig.json",
"compilerOptions": {
"noImplicitAny": true
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

❤️

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants