toss / es-toolkit

A modern JavaScript utility library that's 2-3 times faster and up to 97% smaller—a major upgrade to lodash.
https://es-toolkit.slash.page
Other
6.65k stars 302 forks source link

fix(negate): Fix parameter type of `negate` #455

Closed mass2527 closed 2 months ago

mass2527 commented 2 months ago

Before the change, I encountered a type error when using the negate function with a function that has parameters.

스크린샷 2024-08-31 오후 3 04 48

I have updated the parameter type of negate so that it now supports functions with parameters.

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
es-toolkit ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 31, 2024 6:13am
codecov-commenter commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.77%. Comparing base (db3a8bc) to head (8d4943a).

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/toss/es-toolkit/pull/455/graphs/tree.svg?width=650&height=150&src=pr&token=8N5S3AR3C7&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toss)](https://app.codecov.io/gh/toss/es-toolkit/pull/455?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toss) ```diff @@ Coverage Diff @@ ## main #455 +/- ## ======================================= Coverage 99.77% 99.77% ======================================= Files 168 168 Lines 1348 1348 Branches 360 360 ======================================= Hits 1345 1345 Misses 2 2 Partials 1 1 ```