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

Support "exactOptionalPropertyTypes" #702

Closed
Devidian opened this issue Jul 3, 2023 · 1 comment
Closed

Support "exactOptionalPropertyTypes" #702

Devidian opened this issue Jul 3, 2023 · 1 comment
Assignees
Labels
bug Something isn't working enhancement New feature or request good first issue Good for newcomers

Comments

@Devidian
Copy link

Devidian commented Jul 3, 2023

Problem: in our project we use the tsconfig property exactOptionalPropertyTypes. But i noticed today, that this is incompatible with typia. I have an interface that has all properties optional but every input is throwing errors (does not matter which function i use, assert, is, validate, even null) if at least one optional property is missing.

We don't want to have any property defined but undefined in value.

It would be nice if typia could support it. If not it might be good to add this to "List of incompatible tsconfig settings"

@samchon samchon added the enhancement New feature or request label Jul 3, 2023
@samchon samchon self-assigned this Jul 3, 2023
@samchon samchon added good first issue Good for newcomers bug Something isn't working labels Jul 3, 2023
@samchon
Copy link
Owner

samchon commented Jul 7, 2023

Same issue with #706 and succeeded to fix this bug.

Upgrade to v4.1.4, then everything would be fine. Thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants