l2beat / earl

☕ Ergonomic, modern and type-safe assertion library for TypeScript
https://earl.fun/
MIT License
257 stars 19 forks source link

build: 📦 use ts-essentials@10 #306

Closed Beraliv closed 3 months ago

Beraliv commented 5 months ago

Summary

Hey!

We've just released ts-essentials@10 - https://github.com/ts-essentials/ts-essentials/releases/tag/v10.0.0 so updating the package for the website of your library

@sz-piotr please let me know if you'd like to remove conditional-type-checks in favour to ts-essentials. You can easily replace:

type _ = AssertTrue<
  IsExact<
    MockFunction<[number, number], number>,
    MockFunctionOf<Operation>
  >
>

with just:

isExact<MockFunction<[number, number], number>>()(fn);

in packages/earl/src/mocks/mockFn.test.ts but I will leave it up to you to decide

changeset-bot[bot] commented 5 months ago

🦋 Changeset detected

Latest commit: 46107c011998881fe1df5aeb4063b6c1e2f9cf22

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ------- | ----- | | website | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

vercel[bot] commented 5 months ago

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

Name Status Preview Updated (UTC)
earl-docs ✅ Ready (Inspect) Visit Preview Jun 20, 2024 7:46pm
Beraliv commented 3 months ago

Hey @sz-piotr, please let me know if it's still useful, otherwise, I'm happy to close this PR.