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 #654 - support intersection type with atomic & object #657

Merged
merged 1 commit into from
Jun 11, 2023

Conversation

samchon
Copy link
Owner

@samchon samchon commented Jun 11, 2023

In TypeScript, intersection type combining atomic and object is possible. For an example, numbe & { __value: string } type is possible, even if it seems nonsensible.

Therefore, enhanced typia to support such crazy type. However, much more crazy type combing atomic value and array like number & string[] would be prohibited. Also, combining only objects is possible, but combing both object and array would be blocked.

In TypeScript, intersection type combining atomic and object is possible. For an example, `numbe & { __value: string }` type is possible, even if it seems nonsensible.

Therefore, enhanced `typia` to support such crazy type. However, much more crazy type combing atomic value and array like `number & string[]` would be prohibited. Also, combining only objects is possible, but combing both object and array would be blocked.
@samchon samchon added bug Something isn't working enhancement New feature or request labels Jun 11, 2023
@samchon samchon self-assigned this Jun 11, 2023
@samchon samchon merged commit dba6351 into master Jun 11, 2023
@samchon samchon deleted the features/intersection branch June 11, 2023 15:06
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