allow partially specified type arguments #6344
Labels
Declined
The issue was declined as something which matches the TypeScript vision
In Discussion
Not yet reached consensus
Suggestion
An idea for TypeScript
Currently when it comes to using generics a developer has 2 options:
I am a big fan of the latter but it doesn't always work because of inference failure. Quite often it only takes one explicitly specified type argument to help the inference algorithm to deduce the rest of the types, but there is no such option to specify just one.
Example. Almost everything is inferred but the Direction type parameter, which is specified explicitly via hypothetical syntax:
Alternatively named arguments might be considered (hypothetical syntax)
The text was updated successfully, but these errors were encountered: