angus-c / just

A library of dependency-free JavaScript utilities that do just one thing.
https://anguscroll.com/just
MIT License
6.07k stars 209 forks source link

Add function override, support narrowing when using a type guard as the resolver function #585

Open vidhill opened 3 months ago

vidhill commented 3 months ago

fixes: https://github.com/angus-c/just/issues/584

- using a utility from type-fest to check if the types are what is desired/expected

Before:

Screenshot 2024-09-03 at 20 07 48

After

Screenshot 2024-09-03 at 20 00 35
vidhill commented 2 weeks ago

I updated & added some unit tests assertions to this PR