Open SirBernardPhilip opened 3 years ago
Interesting. I think this is workable. Could you update the documentation?
Interesting. I think this is workable. Could you update the documentation?
Great! I have added an extra sentence to the inject() section. If you think it needs further explanation or even an example let me know.
This would be awesome, any news on this?
Even though there is already the registry, where we can set the providers for the injections. It was discussed in a not so recent issue that the possibility of having default or optional dependencies would be interesting. Since I have not seen it being implemented I came up with this simple first implementation. It does more or less the same that
@registry()
does but within the@inject()
decorator, which will allow for simpler code I believe.