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 for tuple type #601

Merged
merged 6 commits into from
Apr 24, 2023
Merged

Support for tuple type #601

merged 6 commits into from
Apr 24, 2023

Conversation

kakasoo
Copy link
Contributor

@kakasoo kakasoo commented Apr 24, 2023

Thanks to the hint you gave me, I could solve it easily.
I ran the test automation module with the bash script in the content of the CONTRIBUTING document and it was successful.

# COMPILE
npm run build

# PREPARE
npm run test:generate

# DO TEST
npm run test

Copy link
Owner

@samchon samchon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job

src/Primitive.ts Outdated
? _Primitive<T>[]
? IsTuple<Instance> extends true
? Instance extends [infer F, ...infer Rest]
? [F, ..._PrimitiveObject<Rest>]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would better to make a new type to reduce vulnerable iteration depths

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@samchon

Thx for your review. But we were going back a long way, leaving an easier way. :)

Copy link
Owner

@samchon samchon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, very well.

@samchon samchon merged commit cb77f73 into samchon:master Apr 24, 2023
samchon added a commit to samchon/nestia that referenced this pull request Apr 26, 2023
@kakasoo has advanced `Primitive` type in `typia`, and `nestia` also accepts it.

samchon/typia#601
samchon added a commit to samchon/nestia that referenced this pull request Apr 26, 2023
@kakasoo has advanced `Primitive` type in `typia`, and `nestia` also accepts it.

samchon/typia#601
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.

2 participants