Passing Layer Requirements in TypeScript Layer Implementations
Hello,
I have a question about passing a Layer requirement to a Layer implementation that is not defined by the Layer port.
Imagine a Layer such as:
When providing an implementation of FooLayer, I would like to pass a requirement to the implementation. For example:
The only way i found to achieve what I want to do is to do:
Which feels a bit cumbersome. So I wanted to know whether I missed something or not.
Basically I want to "forward" the requirement of Layer from one function to its caller without impacting it's signature.
I hope I was clear enough
Any help appreciated.
I have a question about passing a Layer requirement to a Layer implementation that is not defined by the Layer port.
Imagine a Layer such as:
When providing an implementation of FooLayer, I would like to pass a requirement to the implementation. For example:
The only way i found to achieve what I want to do is to do:
Which feels a bit cumbersome. So I wanted to know whether I missed something or not.
Basically I want to "forward" the requirement of Layer from one function to its caller without impacting it's signature.
I hope I was clear enough
Any help appreciated.
