New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Symbol as DI token #1177
Comments
I misunderstood |
It should be compatible with just token as well (this approach is supported with strings for example). I'll take care of it, thanks for reporting! |
Fixed in 5.3.12 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I'm submitting a...
Current behavior
@Module
decorator'sexports
parameter expects string or other various types. It doesn't support Symbol (which is recommended for DI token e.g. by Inversify - it also makes perfect sense to use Symbol).For now Symbol worked as DI token for me, until I decided to export it.
Expected behavior
Symbol can be used everywhere as DI token.
What is the motivation / use case for changing the behavior?
It would be very nice to use Symbol for token, because that's what token is ideological.
The text was updated successfully, but these errors were encountered: