Skip to content

Add a type predicate for CodedError#2110

Merged
filmaj merged 1 commit intomainfrom
codederror-type-predicate
May 6, 2024
Merged

Add a type predicate for CodedError#2110
filmaj merged 1 commit intomainfrom
codederror-type-predicate

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 requested a review from hello-ashleyintech May 6, 2024 19:22
@filmaj filmaj self-assigned this May 6, 2024
@codecov
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.

🚀

@filmaj filmaj merged commit f2f26bd into main May 6, 2024
@filmaj filmaj deleted the codederror-type-predicate branch May 6, 2024 19:32
This was referenced Sep 13, 2024
This was referenced Sep 20, 2024
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