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

Add a type predicate for CodedError #2110

Merged
merged 1 commit into from
May 6, 2024
Merged

Conversation

filmaj
Copy link
Contributor

@filmaj filmaj commented May 6, 2024

...fixing a typescript error that appeared in main somehow.

Not sure how this started happening... the last commit to main 2 weeks ago passed CI just fine. However, today main started failing the CI.

In any case, the issue seems to be in narrowing the type of errors returned in the error handler. I added a new type predicate to help with the narrowing.

@filmaj filmaj self-assigned this May 6, 2024
Copy link

codecov bot commented May 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.99%. Comparing base (65413b9) to head (684cdbf).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2110      +/-   ##
==========================================
+ Coverage   81.97%   81.99%   +0.02%     
==========================================
  Files          18       18              
  Lines        1531     1533       +2     
  Branches      440      440              
==========================================
+ Hits         1255     1257       +2     
  Misses        178      178              
  Partials       98       98              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@hello-ashleyintech hello-ashleyintech left a comment

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 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.

2 participants