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

Variadic definitions for intersection #312

Open
sledorze opened this issue Mar 26, 2019 · 3 comments
Open

Variadic definitions for intersection #312

sledorze opened this issue Mar 26, 2019 · 3 comments

Comments

@sledorze
Copy link
Collaborator

sledorze commented Mar 26, 2019

@gcanti I'm not sure you went that path of not but that may be usable to generalise 'intersection' signature:
https://github.com/gcanti/io-ts/blob/master/src/index.ts#L1191

I've tried some modifications but it seems to fail with previous typescript versions.
Doing a PR in order to iterate/discuss on this.

Branch 312
https://github.com/gcanti/io-ts/tree/312

@gcanti
Copy link
Owner

gcanti commented Mar 27, 2019

@sledorze I'd wait for an official support microsoft/TypeScript#29594 (comment)

@sledorze
Copy link
Collaborator Author

@gcanti thanks for sharing that thread

@clementheliou
Copy link

Any news about this issue ?
Is there a workaround to use intersection with more than 5 codecs ?
Maybe something based on #431 but the type seems a little bit harder to write here...

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

No branches or pull requests

3 participants