You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When defining generic class functions whose lower bounds depend on class-level generics, the lower bound types will resolve/expand based on the value of those generics. For example, consider this (very lengthy) string literal union:
However, if a similar function is defined with an arrow function, the lower bound does not expand and is instead broadened to just string:
The type constraints are identical between these two functions; they differ only in that the former is a class method and the latter is an arrow function.
It would be really nice if the rendering were consistent here.
The text was updated successfully, but these errors were encountered:
When defining generic class functions whose lower bounds depend on class-level generics, the lower bound types will resolve/expand based on the value of those generics. For example, consider this (very lengthy) string literal union:
However, if a similar function is defined with an arrow function, the lower bound does not expand and is instead broadened to just
string
:The type constraints are identical between these two functions; they differ only in that the former is a class method and the latter is an arrow function.
It would be really nice if the rendering were consistent here.
The text was updated successfully, but these errors were encountered: