Skip to content

Improve TypeScript types with support for arrays containing elements of multiple types #13

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

Merged
merged 3 commits into from
May 21, 2020

Conversation

ValentinH
Copy link
Contributor

Closes #12

I used the approach used in the following PR to type Promise.all(): https://github.com/microsoft/TypeScript/pull/33707/files

@ValentinH
Copy link
Contributor Author

Linting is also failing on master. I'm trying to find a solution.

@ValentinH ValentinH force-pushed the improve-ts-definition branch from af7a91a to c13b4ef Compare May 7, 2020 20:19
@ValentinH
Copy link
Contributor Author

I've updated xo to fix the tests.

@ValentinH ValentinH changed the title Improve Typescript definition: support variadic type arrays Improve Typescript definition: support multiple type arrays May 7, 2020
@ValentinH ValentinH changed the title Improve Typescript definition: support multiple type arrays Improve Typescript definition: support multiple types arrays May 7, 2020
@ValentinH
Copy link
Contributor Author

ValentinH commented May 12, 2020

@sindresorhus could you please have a look? 😊

@sindresorhus sindresorhus changed the title Improve Typescript definition: support multiple types arrays Improve TypeScript types with support for arrays containing elements of multiple types May 21, 2020
@sindresorhus sindresorhus merged commit aa1a980 into sindresorhus:master May 21, 2020
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.

Variadic types
2 participants