You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where I'm stuck
How do I read the values from the dependencies array?
I was trying something like this
{% for type in types.based.MyProtocol %}
class {{ type.name }}Base {
{% for dependencyType in type.dependencies %}
let {{ dependencyType.name|lowerFirst }}: {{ dependencyType.name }}
{% endfor %}
// ...
{% endfor %}
but without any result.
Happy to make that contribution myself if others find it valuable too.
I'm new to this project so if someone could point me in the right direction, that would be great.
Appreciate any ideas and support 🙌🏻
The text was updated successfully, but these errors were encountered:
davidscheutz
changed the title
Iterate Static Immutable Arrays
Iterate Static Arrays
Apr 3, 2023
I have this idea to simplify my code by generating code to constructor inject dependencies specified within my project.
The essential part of my code:
What I would like to generate:
Usage
Where I'm stuck
How do I read the values from the
dependencies
array?I was trying something like this
but without any result.
Happy to make that contribution myself if others find it valuable too.
I'm new to this project so if someone could point me in the right direction, that would be great.
Appreciate any ideas and support 🙌🏻
The text was updated successfully, but these errors were encountered: