moko-resources icon indicating copy to clipboard operation
moko-resources copied to clipboard

Generated resource-objects cannot be used for delegation

Open cpaleop opened this issue 1 year ago • 0 comments

Objects generated in MR like MR.images cannot be used for delegation. The idea is that the delegated object - let's call it Icons - would be used like so:

val anIcon = Icons.an_icon

It would be ideal if the generated MR.images would implement an interface that describes the resource names rather than declaring the resource vals directly in the MR.images object.

Let me know if you want to me describe a valid usecase in a project where such delegation would make sense.

cpaleop avatar Jan 20 '24 23:01 cpaleop