Pitch: @DependencyEndpoint generated properties #270
maximkrouk
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sometimes Clients API could be a bit more ergonomic if it could provide property accessors or even writable properties.
Currently we have
Example:
It can be generalized if we make this client generic over
Value
, we can even make it callable as function to make it a bit more fancyIn any case it's not very ergonomic both at the call and declaration sites.
My proposal is to allow DependencyEndpoint to be attached to properties with the following processing
Declaration example:
Expansion example:
Beta Was this translation helpful? Give feedback.
All reactions