You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the features that makes assertive-ts different is the TypeFactory feature. We should highlight this on the README.md and add some examples in the Usage section. Code examples will also make visible the exported TypeFactories object which provides some basic factories.
Additionally, we should explain what to do when the expected value is of type any. Because of the function overload, we hit a TypeScript limitation, and the first overload matches (because any does extend from the first overload's type). The best approach for these cases is to use the .asType(TypeFactory) method.
Activity
github-actions commentedon Feb 19, 2024
🎉 This issue has been resolved in version 1.0.0 🎉
The release is available on:
Your semantic-release bot 📦🚀