This message was deleted.
# community-support
s
This message was deleted.
e
no, only if it's registered through
ExtensionAware
(e.g.
extensions.add("to", ...)
)
you can add a
Copy code
fun to(action: Action<To>)
to the interface yourself
p
Hm, is
ExtensionsAware
a good solution? The alternative:
fun to(configure: Action<To>) = configure(to)
looks simpler/better.
e
I would choose the
fun
,
extensions
is just how to trigger the generation of accessors (both
.to
and
.to {}
) if that's what you wanted for some reason