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

Fix samchon/nestia#628 - exactOptionalPropertyTypes's with Partial<T> and Required<T> types. #829

Merged
merged 2 commits into from
Sep 29, 2023

Conversation

samchon
Copy link
Owner

@samchon samchon commented Sep 29, 2023

If user configured tsconfig.json to turn on exactOptionalPropertyTypes option, and use Partial<T> or Required<T> type, typia could not identify whether each property is optional or not.

This PR fixes such bug, by enhancing analyzer of TypeScript types. Also, turned on the exactOptionalPropertyTypes option tor enhancing type safety for this case.

…tial<T>` and `Required<T>` types.

If user configured `tsconfig.json` to turn on `exactOptionalPropertyTypes` option, and use `Partial<T>` or `Required<T>` type, `typia` could not identify whether each property is optional or not.

This PR fixes such bug, by enhancing analyzer of TypeScript types. Also, turned on the `exactOptionalPropertyTypes` option tor enhancing type safety for this case.
@samchon samchon added bug Something isn't working enhancement New feature or request labels Sep 29, 2023
@samchon samchon self-assigned this Sep 29, 2023
@samchon samchon merged commit 143c439 into master Sep 29, 2023
2 of 3 checks passed
@samchon samchon deleted the features/optional branch September 29, 2023 16:10
samchon added a commit to samchon/nestia that referenced this pull request Sep 29, 2023
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant