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

Let Composition types to rely on variadic tuple types #36

Merged

Conversation

mooyoul
Copy link
Contributor

@mooyoul mooyoul commented Sep 28, 2020

Closes #13

Important Note

This PR changes minimum TypeScript version to v4 - which is potentially breaking change.

Removed multi generic hack and use variadic tuple types which is
introduced in TypeScript 4

BREAKING CHANGE: Requires TypeScript 4
@sinclairzx81
Copy link
Owner

Wow, thank you!

This had been on my list of things to do for a while, so this PR is very much appreciated. The significant reduction of code leveraging variadics is absolutely wonderful. Happy to roll this PR through with the major revision to 4 (aligning with current revisions of the TypeScript compiler).

Many thanks!

@sinclairzx81 sinclairzx81 merged commit 168c7ed into sinclairzx81:master Sep 28, 2020
@matomesc
Copy link
Contributor

@sinclairzx81 can you release a new version with this PR?

@sinclairzx81
Copy link
Owner

@matomesc Hi mate, sorry yes, will be releasing this shortly, I did want to make a couple of updates before pushing this out to npm, but my current bandwidth to spend has been somewhat limited at present. Apologies there.

Will push out a minor revision update out to npm today.

@sinclairzx81
Copy link
Owner

@matomesc Have pushed an update for 0.11.0 with latest changes.

@matomesc
Copy link
Contributor

Thanks!

github-actions bot pushed a commit to serverless-seoul/typebox that referenced this pull request Jul 6, 2021
# [2.0.0](v1.1.0...v2.0.0) (2021-07-06)

### Bug Fixes

* Allow intersect duplicated required ([sinclairzx81#68](https://github.com/catchfashion/typebox/issues/68)) ([e6de056](e6de056))

### Features

* merge upstream changes ([65eee4a](65eee4a))

* Let Composition types to rely on variadic tuple types (sinclairzx81#36) ([168c7ed](168c7ed)), closes [sinclairzx81#36](https://github.com/catchfashion/typebox/issues/36)

### BREAKING CHANGES

* Requires TypeScript 4

* fix: make TModifier type to non-any type
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.

Union of unions
3 participants