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

ArrayTail doesn't work when mixed with optional elements #978

Open
ferferga opened this issue Nov 7, 2024 · 0 comments · May be fixed by #977
Open

ArrayTail doesn't work when mixed with optional elements #978

ferferga opened this issue Nov 7, 2024 · 0 comments · May be fixed by #977
Labels
bug Something isn't working

Comments

@ferferga
Copy link

ferferga commented Nov 7, 2024

Bug description

This type:

type Test = ArrayTail<[foo?: string | undefined, bar?: number | undefined]>;

Is resolved as []

Repro

https://www.typescriptlang.org/play/?#code/JYWwDg9gTgLgBDAnmApnA3nAglKBDRAFT2ABs4BfOAMyghDgHIlUBaalAZxkYG4BYAFBDqAVwB2AYxjAI4hFxgAKahAgB+AFxxuUYOIDmAGjgAjPFC1xxokKZRQAlBiEBIKChiio4gYIpCQgD0QXCEABbAnHAenBCkAG5cCBBwANqqGtq6+gZwAD5wEgAmKNT6KMUm5pbaNnYOBUXipeXilQC6QixoAGIS0rLiAAoWeCDRALxwo-ggng6cADw9ENQK3AB8fsGhEVE64RCipMUxXPFJKek1VvX2UE0lZRXFXYI9YcgovYrEZHBpjh8EQSKQlv0pDI5LNxpxtoFBCEwpFop9ygAPZIwcJoMAeBKyUTRKKcUQobrfOC9YBY4r-cEAGU2gLgjLgKAxMBQLWiHjwxTkpEQ6Q6cHUbLg2nZnO5vPOAqFIrSEgA1uIIAB3cTqEwAOgN+g4j0ZDLFEtNYKlbJ2SNCACULolknhomlbnVbA8ni0Xu03nBJNAPNJhZTUHAAOrAHE0ukM1lxyoMiEDaEjMYTbZAA

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • The funding will be given to active contributors.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@ferferga ferferga added the bug Something isn't working label Nov 7, 2024
@ferferga ferferga linked a pull request Nov 7, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant