-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Omit value identifiers in function type declarations #16668
Comments
Unfortunately it's not possible at this point because unannotated parameter names implicitly got an |
@DanielRosenwasser Thanks for pointing me to the existing discussion on this topic! Is it conceivable that this could be resolved in say a future 3.x.x release series or is TS going to the way it is on this point indefinitely? |
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed. |
That's fine I guess... heh. I would appreciate an answer to my last question though (if there is a known answer). |
I doubt there is a known answer. Especially, as noted in the other issue that this is marked a duplicate of, some of the core team felt it was worth taking the hit from a breaking change, but ultimately the change didn't occur. But never say never... The core team has re-evaluated things before. |
This is a syntactic feature request. I often find the indentation caused by inline types does great harm to signature readability, e.g.:
One of the ways Haskell types are well designed is in this regard IMO. In TypeScript, what I've taken to doing is a bit of a workaround like so:
This helps me but it would be even better if we were not forced to write the value-level identifiers
x:
andz:
, allowing us to simply write:The text was updated successfully, but these errors were encountered: