PropertyInitializer returns all properties as Property<Boolean>, Property<String> which is the best way of declaring properties (I just need the property type and don't need to know the implementation), however when doing more complicated things it clearly becomes useful to have fields with the concrete property type. Therefore, I would like to return, for example, BooleanProperty from a method instead of Property<Boolean>.
It shouldn't impact many workflows since we rarely expect the method to be typed first and then to be assigned to a variable, given that they're constants and you have to think about the type.
PropertyInitializer returns all properties as
Property<Boolean>
,Property<String>
which is the best way of declaring properties (I just need the property type and don't need to know the implementation), however when doing more complicated things it clearly becomes useful to have fields with the concrete property type. Therefore, I would like to return, for example,BooleanProperty
from a method instead ofProperty<Boolean>
.It shouldn't impact many workflows since we rarely expect the method to be typed first and then to be assigned to a variable, given that they're constants and you have to think about the type.