-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Support Recursive Conditional Types #36142
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
Labels
Duplicate
An existing issue was already created
Comments
I can up with this inelegant solution that works but only handles up to 10 params
|
Duplicate of #26980, but yes, please. |
@Roaders Or use |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Search Terms
recursive conditional
Suggestion
I want to be able to use recursive conditional types.
Use Cases
In this type:
I am making all elements optional except for the ones at the start that are strings. This fails as
MapParams
references itself so I get aType alias 'MapParams' circularly references itself.(2456)
error.Examples
Playground
Checklist
My suggestion meets these guidelines:
The text was updated successfully, but these errors were encountered: