As the title states, the goal of this MR is to infer automatically the return type of the compose method and also support the existing type in order not to create a breaking change in that area.
Before, in order to have the correct return type, you'd have to explicitly provide the "computed" return type:
Summary
As the title states, the goal of this MR is to infer automatically the return type of the
compose
method and also support the existing type in order not to create a breaking change in that area.Before, in order to have the correct return type, you'd have to explicitly provide the "computed" return type:
With this new change, you'd still be able to do that (like we do internally on xstyled) or you could just write the following: