-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
TS error Logger.error #45
Comments
|
@santiq But it just a copy of this git project. I cant build a project. Can we fix this together? |
@santiq I'm having the same issue here. @hubochkin Were you able to fix this issue? |
@peiris No, I didn't :( |
I got this to work by adding a LoggerInterface in src/interfaces/LoggerInterface.ts:
and then adding that type to every definition of the logger container: I am extremely new to TS so there is probably a better way to do this but it does appear to work. |
This looks to me to be a duplicate of #27 |
I got this to work by specifying the generic type as
|
src/subscribers/user.ts:29:14 - error TS2339: Property 'error' does not exist on type 'unknown'
But if I do the next code - everything is fine
As I can see. typedi do not see levels in Container.
How can I fix this ?
The text was updated successfully, but these errors were encountered: