Skip to content

feat: Add support for more data types #8

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

Merged
merged 3 commits into from
Feb 10, 2023
Merged

Conversation

arnold095
Copy link
Contributor

The Primitives utility works well when the types are value objects or an array of value objects. The problem is when in an entity apart from value objects there are also simpler data types (booleans, strings, numbers, etc.), as well as possible undefined values.

This behaviour can be seen in this playground

With my proposal it is possible to infer the cases that were already covered as well as the new cases I have outlined above.

this is the playground of my proposal

@ismanapa
Copy link
Contributor

Awesome! 🎉🎉

Thanks for your contribution. I like very much the use of infer to simplify the conditional types.

@ismanapa ismanapa merged commit b3e5364 into CodelyTV:main Feb 10, 2023
@ismanapa ismanapa mentioned this pull request Feb 10, 2023
@RubenRuCh
Copy link

RubenRuCh commented Sep 2, 2024

I was using an old version of the library, and this behaviour was driving me crazy. Thanks a lot Arnold!!!

/tip 29 @arnold095

How to receive this tip?

@arnold095 go to your settings and make sure your Stripe account is configured, otherwise you won't be able to receive payments.
@RubenRuCh you can pay the tip in your dashboard

Copy link

opirebot bot commented Sep 3, 2024

🥳 @RubenRuCh completed the payment of $29.00 as a tip for @arnold095 💰
Congratulations and thanks for your effort! 🎉

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

Successfully merging this pull request may close these issues.

3 participants