Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make by default all type asserted to avoid passing Assert<> everywhere #61

Closed
acemtp opened this issue Jul 24, 2024 · 1 comment
Closed

Comments

@acemtp
Copy link

acemtp commented Jul 24, 2024

We really love what you've done.

We try to pimp a lot MeteorJS using full TS and use your package to runtime check all the part that come from the client that cannot be trusted.

But in the end, we love to keep the code simple and small and we would like to be able to check everything every time and only disable it with NoAssert<> or something like that in the very rare case we need optimisation.

The other benefit is that dev cannot forget to add Assert because we prefer checking too much things than forgetting to check onething that can become a hack.

function validate(user: User)

will add the assert for User.

@GoogleFeud
Copy link
Owner

Hi! I think this is a great idea, I'll implement it in the next version!

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

No branches or pull requests

2 participants