Skip to content

Conversation

4513ECHO
Copy link
Contributor

Built-in Array.prototype.filter has an overload that allows us to narrow the type by type predicate.
This pull request adds a support for this also to iterutil.

@lambdalisue
Copy link
Member

lambdalisue commented Aug 20, 2024

Is it possible to add type tests for the narrowing is actually working?

Copy link

codecov bot commented Aug 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (85fd83b) to head (78d4eaf).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #21   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          117       117           
  Lines         1370      1370           
  Branches       215       215           
=========================================
  Hits          1370      1370           

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

Copy link
Member

@lambdalisue lambdalisue left a comment

Choose a reason for hiding this comment

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

LGTM

@lambdalisue lambdalisue merged commit 2cf67f5 into jsr-core:main Aug 20, 2024
@4513ECHO 4513ECHO deleted the filter-overload branch August 20, 2024 13:49
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